source.addtime: A personal adaptation of source()

Description Usage Arguments Examples

View source: R/source.addtime.R

Description

This source.addtime() makes use of the RuntimeC-Class and includes making a time-point aswell as sourcing the script. Advantage: one-liner and the called script has access to its name. The script will be sourced automatically in .GobalEnv (according to stackoverflow) I also tested this and it seems to work.

Usage

1
source.addtime(scriptpath, runtimecobject)

Arguments

scriptpath

path to a script to execute

runtimecobject

The RuntimeC-object where the timepoint should be added.

Examples

1
2
3
library(basicscriptsGG)
A_RUNTIME <- RuntimeC()		# initialize runtime-array
# source.addtime("ANY.Scriptpath", A_RUNTIME)

gugl58/basicscriptsGG-Package documentation built on May 17, 2019, 9:08 a.m.