system_new: Create New 'system.txt' File

Description Usage Arguments Details Value Examples

View source: R/ubiquity.r

Description

Copy a blank template (system_file="template") file to the working directory or an example by specifying the following:

Usage

1
2
3
4
5
6
system_new(
  file_name = "system.txt",
  system_file = "template",
  overwrite = FALSE,
  output_directory = getwd()
)

Arguments

file_name

name of the new file to create

system_file

name of the system file to copy

overwrite

if TRUE the new system file will overwrite any existing files present

output_directory

getwd() directory where system file will be placed

Details

References

Value

TRUE if the new file was created and FALSE otherwise

Examples

1
2
3
4
5
# To create an example system file named example_system.txt:
system_new(system_file      = "mab_pk", 
           file_name        = "system_example.txt", 
           overwrite        = TRUE,  
           output_directory = tempdir())

ubiquity documentation built on Sept. 5, 2021, 5:15 p.m.