-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
delete test data from userdir on CRAN
- Loading branch information
1 parent
540751b
commit 21c4645
Showing
1 changed file
with
10 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Starting in Jan 2021, CRAN starts nagging you about leaving files in the userdir. | ||
# We have to store data there to be able to get away with the 5 MB (!) package size limit and | ||
# still be able to run unit tests on CRAN. | ||
# We have 2 options: 1) do not run any unit tests requiring data on CRAN (almost all of our tests require data). | ||
# 2) download the data and delete everything afterwards, on CRAN (users will want to keep the data, as they only have it if they decided to download it). | ||
# So we delete all data ONLY if we are on CRAN in this teardown file. | ||
|
||
if(!identical(Sys.getenv("NOT_CRAN"), "true")) { | ||
freesurferformats::delete_all_opt_data(); | ||
} |