Receive: Simple way to read R object into script produced from...

Description Usage Arguments Details Value Examples

View source: R/pass_recieve.R

Description

Simple way to read R object into script produced from another.

Usage

1
Receive(varname, Rscript = "", output = FALSE)

Arguments

varname

String of R object name from other R script.

Rscript

R script that created the R object to read in.

output

Default FALSE logical indicating whether to return object object or create object of name varname.

Details

Creates object in environment called varname. Don't need to specify Rscript.

Adds '.rda' to object name and reads from Result file. Works with 'Pass'.

Value

NULL or value of varname

Examples

1
2
3
4
5
6
7
## Not run: 
# Requires internet connection to access GitHub.
Recieve("myObject") # Creates myObject in workspace
newName <- Recieve("myObject",output=TRUE) # Returns value of 'myObject'
Receive("myObject","myRscript.R")

## End(Not run) 

gelfondjal/adapr documentation built on Feb. 2, 2020, 1:32 a.m.