* using log directory 'd:/Rcompile/CRANpkg/local/3.6/neonstore.Rcheck' * using R version 3.6.3 (2020-02-29) * using platform: x86_64-w64-mingw32 (64-bit) * using session charset: ISO8859-1 * checking for file 'neonstore/DESCRIPTION' ... OK * this is package 'neonstore' version '0.4.0' * package encoding: UTF-8 * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'neonstore' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking for left-over files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking R files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... OK * checking use of S3 registration ... OK * checking dependencies in R code ... NOTE Missing or unexported object: 'tools::R_user_dir' * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... [6s] OK * checking Rd files ... OK * checking Rd metadata ... OK * checking Rd cross-references ... WARNING Missing link or links in documentation object 'neon_citation.Rd': '[tools:userdir]{tools::R_user_dir()}' Missing link or links in documentation object 'neon_db.Rd': '[tools:userdir]{tools::R_user_dir()}' Missing link or links in documentation object 'neon_db_dir.Rd': '[tools:userdir]{tools::R_user_dir()}' Missing link or links in documentation object 'neon_dir.Rd': '[tools:userdir]{tools::R_user_dir()}' Missing link or links in documentation object 'neon_download.Rd': '[tools:userdir]{tools::R_user_dir()}' Missing link or links in documentation object 'neon_download_s3.Rd': '[tools:userdir]{tools::R_user_dir()}' Missing link or links in documentation object 'neon_export.Rd': '[tools:userdir]{tools::R_user_dir()}' Missing link or links in documentation object 'neon_import.Rd': '[tools:userdir]{tools::R_user_dir()}' Missing link or links in documentation object 'neon_index.Rd': '[tools:userdir]{tools::R_user_dir()}' Missing link or links in documentation object 'neon_read.Rd': '[tools:userdir]{tools::R_user_dir()}' Missing link or links in documentation object 'neon_store.Rd': '[tools:userdir]{tools::R_user_dir()}' Missing link or links in documentation object 'show_deprecated_data.Rd': '[tools:userdir]{tools::R_user_dir()}' See section 'Cross-references' in the 'Writing R Extensions' manual. * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking examples ... ERROR Running examples in 'neonstore-Ex.R' failed The error most likely occurred in: > ### Name: neon_citation > ### Title: Generate the appropriate citation for your data > ### Aliases: neon_citation > > ### ** Examples > > > neon_citation("DP1.10003.001") National Ecological Observatory Network (2021). "Data Products: NEON.DP1.10003.001 . Provisional data downloaded from http://data.neonscience.org on 08 Apr 2021." > > ## or the citation for all products in store: > neon_citation() Error: 'R_user_dir' is not an exported object from 'namespace:tools' Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [3s] ERROR Running 'spelling.R' [0s] Running 'testthat.R' [2s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(neonstore) > > > test_check("neonstore") == Skipped tests =============================================================== * On CRAN (18) == Failed tests ================================================================ -- Error (test-api.R:6:3): neon_dir() ------------------------------------------ Error: 'R_user_dir' is not an exported object from 'namespace:tools' Backtrace: x 1. \-neonstore::neon_dir() test-api.R:6:2 2. +-base::Sys.getenv("NEONSTORE_HOME", tools::R_user_dir("neonstore")) 3. \-tools::R_user_dir 4. \-base::getExportedValue(pkg, name) -- Error (test-db.R:10:3): neon_db --------------------------------------------- Error: 'R_user_dir' is not an exported object from 'namespace:tools' Backtrace: x 1. \-neonstore::neon_db() test-db.R:10:2 2. +-base::dir.exists(dir) 3. \-neonstore::neon_db_dir() 4. +-base::Sys.getenv(...) 5. +-base::file.path(tools::R_user_dir("neonstore"), "duckdb") 6. \-tools::R_user_dir 7. \-base::getExportedValue(pkg, name) [ FAIL 2 | WARN 0 | SKIP 18 | PASS 24 ] Error: Test failures Execution halted * checking PDF version of manual ... OK * DONE Status: 2 ERRORs, 1 WARNING, 1 NOTE