I've been writing a personal package with reference to Hadley's guide. However, adding a minimal vignette using devtools::use_vignette()
seems to break devtools::check()
.
When I try to run check()
I get one error:
file 'C:/path/temp/package/DESCRIPTION' is not in valid DCF format
and one warning:
In read.dcf(dfile, keep.white = .keep_white_description_fields) :
cannot open compressed file 'C:/path/temp/package/DESCRIPTION', probable reason 'Permission denied'
I can successfully run devtools::check()
if I delete the vignettes folder and devtools::build_vignettes()
runs ok.
Edited to add:
I wondered if this was an issue with trying run check from a network location, but I copied the project to C:\R\package_name
and it still returns the same error.
Curiously, this does appear to be machine dependent as I get the above error on my work machine, but not on my personal laptop. Work machine is win7, personal win10.
DESCRIPTION is copied below
Package: pkg_nm
Type: Package
Title: A title
Version: 0.0.0.9000
Authors@R: person("name", "name", email = "emal@email.com", role = c("aut", "cre"))
Description: Functions for working with data from my source.
License: OGL
LazyData: TRUE
RoxygenNote: 5.0.1
URL: [url here]
BugReports: [url here]
Imports:
lubridate,
stringr,
dplyr,
lazyeval,
magrittr
Collate:
'my_function.R'
Suggests: knitr,
rmarkdown
VignetteBuilder: knitr