BoutrosLab.plotting.general (version 5.9.2)

save.session.profile: Save Session Profile

Description

The function writes to filename the total memory used, the total process time elapsed and the session info of the R session.

Usage

save.session.profile(filename, stdout=FALSE);

Arguments

filename

Name of the file to write session profile information to. If stdout = TRUE, the session profile information is also printed to the screen.

stdout

Print session profile information to screen. Default is FALSE.

Value

No return value, just writes output to file (and possibly screen).

Details

Session profile includes memory used from gc(), process time elapsed from proc.time(), the output of ls() in the global environment, and the session info from sessionInfo()

Examples

Run this code
# NOT RUN {
x <- rnorm(1e8);
save.session.profile(paste0(paste0(tempdir(),"/"),
	generate.filename('Test', 'Session.Profile', 'txt')));
# }

Run the code above in your browser using DataCamp Workspace