You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ export _R_CHECK_THINGS_IN_USER_DIR_=true
$ R CMD check --as-cran R.cache_0.16.0.tar.gz
* using log directory ‘/home/henrik/tmp/R.cache.Rcheck’
* using R version 4.3.2 (2023-10-31)
...
Running ‘textPrompt.R’
OK
* checking PDF version of manual ... OK
* checking HTML version of manual ... OK
* checking fornon-standard thingsin the check directory ... OK
* checking fordetritusin the temp directory ... OK
* checking fordetritusin the user cache directory ... NOTE
Found the following added (A), removed (R), or modified (M) files:
A 42b71ea60b7c385ad29633002f402f72 431B 2023-12-12T11:03:19 README.txt
* checking fordetritusin the user config directory ... OK
* checking fordetritusin the user data directory ... OK
* DONE
Status: OK
BLOCKER: It will be hard to discern writes/updates made by the R CMD check run from those that may occur from other R processes running on the same machine by the same user.
The only way to resolve this, is to use session-specific user folders. This can be achieved by setting R_USER_DATA_DIR, R_USER_CONFIG_DIR, and R_USER_CACHE_DIR (from ?tools::R_user_dir()) to temporary folders. This would in turn lead to all checks being run with empty file caches, etc.
HenrikBengtsson
changed the title
R CMD check: Option for reporting on writes/updates to tools::R_user_dir() during checks
R CMD check: Option for testing with empty tools::R_user_dir() folders
Dec 13, 2023
HenrikBengtsson
changed the title
R CMD check: Option for testing with empty tools::R_user_dir() folders
R CMD check: Option for reporting on writes/updates to tools::R_user_dir() during checks
Dec 13, 2023
Something like:
See also
This is not the solution to, but it's related to a discussion on running
R CMD check
with an already populated cache over that the Bioconductor#bioc-builds
channel, cf. https://community-bioc.slack.com/archives/CEQ04GKEC/p1702394023260179?thread_ts=1701914888.153329&cid=CEQ04GKECThe text was updated successfully, but these errors were encountered: