execute: Run an R Script in it's own Session Informatively

View source: R/misc functions.R

executeR Documentation

Run an R Script in it's own Session Informatively

Description

This function is a wrapper for a few tweaks around sourcing an R script.

Usage

execute(filepath)

Arguments

filepath

a character string indicating the R script you want to execute.

Details

The R script is run in it's own R session, to avoid crashing an R session handling the batch processing of scripts. Activity is indicated with a spinner, and completed scripts are announced to help localise errors to a script. The time taken for a script to complete is also tracked in a log file, which can be accessed with 'tictoc::tic.log()'.

Value

The R script is run for it's side effects and the run time added to a log by 'tictoc'.


Jack-H-Laverick/MiMeMo.tools documentation built on March 6, 2023, 3:44 p.m.