filesize | R Documentation |
Returns size of a file as reported by the file system (the file is not scanned).
Sys.filesize(filename) Sys.dirsize(dirname)
filename, dirname |
Location of the file/directory (as a string). |
All of the C-level source code for these methods (in src/meminfo of the root directory of the memuse source tree) is licensed under the permissive 2-Clause BSD license.
A memuse class object.
## Not run: library(memuse) x <- rnorm(1e5) memuse(x) ### size in ram tmp <- tempfile() saveRDS(x, file=tmp) Sys.filesize(tmp) ### size on disk unlink(tmp) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.