Minimum Scriport

Add the names of packages (enclosed in quotes) you need to this vector

.projpackages <- c('pander');

If you want to reuse calculations done by other scripts, add them to .deps below after 'dictionary.R'.

.deps <- c( 'dictionary.R' ); 

Edit the next line only if you copy or rename this file (make the new name the argument to current_scriptname())

.currentscript <- current_scriptname('minimum_scriport.R');

Start

In the above lines were the minimum set of commands needed for a script to have access to all the features of Ripcord. Add any commands you like below. All the datasets specified in your local.config.R file will be available here and if local.config.R does not exist, then all the datasets specified in your config.R file.

Put any R commands you want below. The following datasets are available: [1] “'a', 'b', 'c', 'd' and 'e'”, attr(,“class”), [1] “knit_asis”, attr(,“knit_cacheable”), [1] NA.

#
# Your code here!
#

Save results

Now the results are saved and available for use by other scriports if you place 'minimum_scriport.R' among the values in their .deps variables.

save(file=paste0(.currentscript,'.rdata'),list=setdiff(ls(),.origfiles));

Finish