tryReportFileCreation: Report File Creation

View source: R/ExportToReport.R

tryReportFileCreationR Documentation

Report File Creation

Description

Checks if report files can be created.

Usage

tryReportFileCreation(fileName, write_to, overwrite = FALSE)

Arguments

fileName

default fileName path.

write_to

pattern used to export file(s). Placeholders, like c("%d/%s_fromR.pdf", "%d/%s_fromR.csv"), will be substituted:
-%d: with full path directory of 'fileName'
-%p: with first parent directory of 'fileName'
-%e: with extension of 'fileName' (without leading .)
-%s: with shortname from 'fileName' (i.e. basename without extension).
Exported file(s) extension(s) will be deduced from this pattern. Note that has to be a .pdf and/or .csv.

overwrite

whether to overwrite file or not. Default is FALSE. Note that if TRUE, it will overwrite file. In addition a warning message will be sent.

Value

a list with path(s) to pdf and csv file and overwritten status


IFC documentation built on Sept. 14, 2023, 1:08 a.m.