session: Get the session script

Description Usage Arguments Details Value Examples

Description

A command-line (console) tool to fetch the script for a particular session, remove some unnecessary code and place a copy in a file in the main working directory.

Usage

1
2
3
4
session(n, scripts = "scripts", pdf = "PDF", here = getwd())

## S3 method for class 'session'
print(x, ...)

Arguments

n

integer: the session number

scripts

the sub-folder containint the scripts, .R files

pdf

the sub-folder containint the pdf files, .pdf

here

where the results should go, normally the working directory

x

An object of class "session"

...

extra arguments (currently ignored)

Details

It also places a copy of the display pdf file in the main working directory as well.

Value

A character string vector which when printed yields the required pared-down script file.

Examples

1
2
3
4
## Not run: 
session(1)

## End(Not run)

BillVenables/WWRCourse documentation built on Jan. 31, 2021, 4:22 p.m.