I am writing a personal package with a link to the Hadley guide . However, adding a minimal vignette using devtools::use_vignette() seems to violate 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() works fine.
Edited to add: I wondered if this was a problem when trying to check from a network location, but I copied the project to C:\R\package_name and it still returns the same error.
Curiously, this seems to be machine dependent, as I get the above error on my working machine, but not on my personal laptop. The working machine is win7, a personal victory.
DESCRIPTION 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
r.bot source share