Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move Suggest-ed package tests out of tests.Rraw #5516

Closed
mattdowle opened this issue Nov 8, 2022 · 1 comment · Fixed by #5518
Closed

Move Suggest-ed package tests out of tests.Rraw #5516

mattdowle opened this issue Nov 8, 2022 · 1 comment · Fixed by #5518
Labels
Milestone

Comments

@mattdowle
Copy link
Member

To reduce RAM usage in attempt to work on (I guess severely overloaded) CRAN Windows #5507
Thanks to a comment by @ben-schwen here: #5515 (comment)

@mattdowle
Copy link
Member Author

mattdowle commented Nov 9, 2022

bit64 tends to be tagged onto sets of type tests, so that will be tricky to move out. There is a lot of usage too (52). Loading it uses 15MB so let's leave bit64 for now.

x = system("grep -o 'if [(]test_[^)]*[)]' inst/tests/tests.Rraw", intern=TRUE)
as.matrix(sort(table(x)))
                                [,1]
if (test_bit64 && test_R.utils)    1
if (test_yaml)                     1
if (test_xts)                      4
if (test_longdouble)               5
if (test_nanotime)                 6
if (test_R.utils)                 28
if (test_bit64)                   52

# fresh R
rss = function()as.integer(as.numeric(system(paste0("ps -o rss --no-headers ",Sys.getpid()),intern=TRUE))/1024)
rss()
# 53
require(bit64)
rss()
# 68

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants