filesize: filesize

Description Usage Arguments Details Value Examples

Description

Returns size of a file as reported by the file system (the file is not scanned).

Usage

1
2
3

Arguments

filename, dirname

Location of the file/directory (as a string).

Details

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.

Value

A memuse class object.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## 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)

memuse documentation built on Feb. 17, 2020, 5:09 p.m.