With the ubiquity package this function can be used to fetch example files for different sections of the workshop.

workshop_fetch(
  section = "Simulation",
  overwrite = FALSE,
  copy_files = TRUE,
  output_directory = getwd()
)

Arguments

section

Name of the section of workshop to retrieve ("Simulation")

overwrite

if TRUE the new workshop files will overwrite any existing files present (FALSE)

copy_files

if TRUE the files will be written to the output_directory, if FALSE only the names and locations of the files will be returned (TRUE)

output_directory

directory where workshop files will be placed (getwd())

Value

list

Details

Valid sections are "Simulation", "Estimation", "Titration" "Reporting", and "NCA"

Examples

# \donttest{
workshop_fetch("Estimation", output_directory=tempdir(), overwrite=TRUE)
#> → Creating file: /var/folders/xs/3gst8jln2q3c_01y4cg1rqp00000gn/T//RtmpKQQlha/analysis_parent.r
#> → Creating file: /var/folders/xs/3gst8jln2q3c_01y4cg1rqp00000gn/T//RtmpKQQlha/analysis_parent_metabolite.r
#> → Creating file: /var/folders/xs/3gst8jln2q3c_01y4cg1rqp00000gn/T//RtmpKQQlha/analysis_parent_metabolite_global.r
#> → Creating file: /var/folders/xs/3gst8jln2q3c_01y4cg1rqp00000gn/T//RtmpKQQlha/analysis_parent_metabolite_nm_data.r
#> → Creating file: /var/folders/xs/3gst8jln2q3c_01y4cg1rqp00000gn/T//RtmpKQQlha/system.txt
#> → Creating file: /var/folders/xs/3gst8jln2q3c_01y4cg1rqp00000gn/T//RtmpKQQlha/pm_data.csv
#> → Creating file: /var/folders/xs/3gst8jln2q3c_01y4cg1rqp00000gn/T//RtmpKQQlha/nm_data.csv
#> $sources
#> [1] "/private/var/folders/xs/3gst8jln2q3c_01y4cg1rqp00000gn/T/Rtmp86Dnqr/temp_libpathd6293a59efd5/ubiquity/ubinc/scripts/analysis_parent.r"                   
#> [2] "/private/var/folders/xs/3gst8jln2q3c_01y4cg1rqp00000gn/T/Rtmp86Dnqr/temp_libpathd6293a59efd5/ubiquity/ubinc/scripts/analysis_parent_metabolite.r"        
#> [3] "/private/var/folders/xs/3gst8jln2q3c_01y4cg1rqp00000gn/T/Rtmp86Dnqr/temp_libpathd6293a59efd5/ubiquity/ubinc/scripts/analysis_parent_metabolite_global.r" 
#> [4] "/private/var/folders/xs/3gst8jln2q3c_01y4cg1rqp00000gn/T/Rtmp86Dnqr/temp_libpathd6293a59efd5/ubiquity/ubinc/scripts/analysis_parent_metabolite_nm_data.r"
#> [5] "/private/var/folders/xs/3gst8jln2q3c_01y4cg1rqp00000gn/T/Rtmp86Dnqr/temp_libpathd6293a59efd5/ubiquity/ubinc/systems/system-adapt.txt"                    
#> [6] "/private/var/folders/xs/3gst8jln2q3c_01y4cg1rqp00000gn/T/Rtmp86Dnqr/temp_libpathd6293a59efd5/ubiquity/ubinc/csv/pm_data.csv"                             
#> [7] "/private/var/folders/xs/3gst8jln2q3c_01y4cg1rqp00000gn/T/Rtmp86Dnqr/temp_libpathd6293a59efd5/ubiquity/ubinc/csv/nm_data.csv"                             
#> 
#> $destinations
#> [1] "analysis_parent.r"                   
#> [2] "analysis_parent_metabolite.r"        
#> [3] "analysis_parent_metabolite_global.r" 
#> [4] "analysis_parent_metabolite_nm_data.r"
#> [5] "system.txt"                          
#> [6] "pm_data.csv"                         
#> [7] "nm_data.csv"                         
#> 
#> $write_file
#> [1] TRUE TRUE TRUE TRUE TRUE TRUE TRUE
#> 
#> $isgood
#> [1] TRUE
#> 
# }