Handling of interactive No to clean_doc
question
#186
Labels
tidy-dev-day 🤓
Tidyverse Developer Day rstd.io/tidy-dev-day
clean_doc
question
#186
The meaning of a
No
response to the interactive prompt is unclear, even after selecting it. Furthermore, the ensuing behavior is surprising and unhelpful.Sample
This is from a vanilla
R
session (notRStudio
):Problems
Are you sure?
probably means "do you want to delete inst/doc?", but it could mean "do you want to continue with the build?" It's ambiguous. For the pedantic, there is a 3rd interpretation: "say whether or not you are sure that this tool deletes the directory".Selection: 2
has no obvious meaning or significance. In particular, it doesn't resolve the question of whether the deletion or the whole build was aborted.No
actually did abort the build, since no tarball resulted. It would be more helpful if it left the directory in place and continued with the build.Desired Behavior
No
leavesinst/doc
and proceeds with the build.No
does not produce the meaningless output shown above.Yes
orNo
response, and that matches what happens."leaves
inst/doc
" above simply means the deletion of the directory is skipped; it is not intended to mean no new material such as vignettes will be placed ininst/doc
.Code
https://github.com/r-lib/pkgbuild/blob/90f017b337ae23006b10fd8a5db1040ddf5fd401/R/build.R#L251C1-L256C10 seems to be the relevant code. If option 2 is selected then
return()
is executed. My expectation, and I think the intention, is that it simply exits from the block beginning atpkgbuild/R/build.R
Line 248 in 90f017b
return
simply skips them.Context
R 4.4.0
pkgbuild 1.4.4
devtools 2.4.5
MS Windows amd64
The text was updated successfully, but these errors were encountered: