S Subramanian
2013-Sep-03 15:01 UTC
[R] R CMD check Note: Non-standard file found at top level
My R CMD check pkgname and R CMD build pkgname run without any notes or warnings or errors. However when i run R CMD check --as-cran-pkgname_version.tar.gz, i get the following note: * checking top-level files ... NOTE Non-standard file found at top level: 'build' Everything else is ok. What is going wrong? [[alternative HTML version deleted]]
Hadley Wickham
2013-Sep-03 20:50 UTC
[R] R CMD check Note: Non-standard file found at top level
The note is telling you that you usually shouldn't have a file called build in the top level of your package. What's in the file and why is it there? Hadley On Tue, Sep 3, 2013 at 10:01 AM, S Subramanian <ssubramanian at sssihl.edu.in> wrote:> My R CMD check pkgname and R CMD build pkgname run without any notes or > warnings or errors. > > However when i run R CMD check --as-cran-pkgname_version.tar.gz, i get the > following note: > > * checking top-level files ... NOTE > Non-standard file found at top level: > 'build' > > > Everything else is ok. What is going wrong? > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.-- Chief Scientist, RStudio http://had.co.nz/
S Subramanian
2013-Sep-04 01:14 UTC
[R] R CMD check Note: Non-standard file found at top level
Thank you for the replies. As Prof Brian Ripley mentioned, in my case, (I was using the latest r devel) and "R CMD build pkgname" indeed put a directory called build with a file named vignette inside it. So I tried "R CMD build --no-build-vignettes pkgname" and the problem got solved. Thanks again. [[alternative HTML version deleted]]