Displaying 1 result from an estimated 1 matches for "bonsch".
Did you mean:
bolsch
2017 Nov 21
1
Truncating vectors by reference in C-backend
...ed
print(length(x) == 1)
# [1] TRUE
print(object.size(x))
# 48 bytes
## but I can't reuse the memory for a large x2:
x2 <- 1 : 2e8
# Error: cannot allocate vector of size 762.9 Mb
## if I remove x, it works
rm(x)
gc()
x2 <- 1 : 2e8
Thank you very much for your help.
Kind regards,
Markus Bonsch