Hi Tyler,
Thanks to you, I have made substantial progress on my project. All my plots and animations work using ggplot2::plot type commands.
I devtools::check()’d my R package under various scenarios without some kind of W, N or error. I cannot determine how to treat “mtcars”.
According to Hadley, I should put sysdata.rda in /data-raw folder after executing devtools::use_data(mtcars, internal = TRUE). In addition, he says that sysdata.rda need not be documented. There is a serious
The following is abridged output. I have underlined devtools::check() statements that I don’t know how to resolve them. Given my knowledge of RStudio, I don’t know if the W and N statements are important or not.
Given Hadley’s comments, I am disturbed by the fact that I received multiple warnings about “mtcars”.
Running /Library/Frameworks/R.framework/Resources/bin/R CMD build \
/Users/PJO/Desktop/Basic --no-resave-data --no-manual
* checking for file ‘/Users/PJO/Desktop/Basic/DESCRIPTION’ ... OK
* preparing ‘Basic’:
* checking DESCRIPTION meta-information ... OK
* checking for LF line-endings in source and make files and shell scripts
* checking for empty or unneeded directories
* looking to see if a ‘data/datalist’ file should be added
* building ‘Basic_0.1.0.tar.gz’
── Checking ────────────────────────────────────────────────────────── Basic ──
W checking DESCRIPTION meta-information ...
Non-standard license specification:
MIT(https://tldrlegal.com/license/mit-license)
Standardizable: FALSE
N checking top-level files
Non-standard file/directory found at top level:
‘data-raw’
N checking R code for possible problems (3.3s)
test: no visible binding for global variable ‘mtcars’
test: no visible binding for global variable ‘mpg’
test: no visible binding for global variable ‘cyl’
test: no visible binding for global variable ‘disp’
Undefined global functions or variables:
cyl disp mpg mtcars
Consider adding
importFrom("datasets", "mtcars")
to your NAMESPACE file.
N checking examples (43.8s)
Examples with CPU or elapsed time > 5s
user system elapsed
cfanim 25.936 2.959 42.377
See
‘/Users/PJO/Desktop/Basic.Rcheck/00check.log’
for details.
Error: R CMD check found WARNINGs
Execution halted
When I put importFrom("datasets", "mtcars”) in NAMESPACE, I get the following ERROR.
Error : object ‘mtcars’ is not exported by 'namespace:datasets'
ERROR: lazy loading failed for package ‘Basic’
Gratefully,
Paul