BoutrosLab.plotting.general (version 5.9.2)

generate.filename: Generate a filename in the lab standard

Description

This function creates a filename according to the date_project_core.extension lab standard.

Usage

generate.filename(project.stem, file.core, extension, file.date = Sys.Date());

Arguments

project.stem

Name of the project

file.core

Main part of the filename

extension

What type of file is this

file.date

What is the current date (defaults to today; FALSE turns off the date-stamp)

Value

No return value

Examples

Run this code
# NOT RUN {
# generate a filename to screen
generate.filename('NSCLC', 'StatisticalAnalysis', 'txt');

# generate a filename in context of another function
save.session.profile( paste0(paste0(tempdir(),"/"),
	generate.filename('Prostate', 'StatisticalAnalysisSessionProfile', 'txt')) );

# generate a filename without a date
generate.filename('NSCLC', 'StatisticalAnalysis', 'txt', FALSE);
# }

Run the code above in your browser using DataLab