rockr.assign.expr {rockr}R Documentation

Assign an R expression

Description

Assign an R expression to a symbol in the remote R session.

Usage

rockr.assign.expr(conn, symbol, value, async = FALSE)

Arguments

conn

A rockr connection object.

symbol

Name of the R symbol.

value

Value to assign to the symbol: can be a primitive value or a R script to execute.

async

R script is executed asynchronously within the session (default is FALSE). If TRUE, the value returned is the ID of the command to look for.

Value

The command object if async is TRUE

See Also

Other assignment functions: rockr.assign.data(), rockr.assign()

Examples

## Not run: 
conn <- rockr.connect(username='user', password='password',
                      url='https://rocker-demo.obiba.org')
rockr.open(conn)
rockr.assign.expr(conn, "x", 123)
rockr.assign.expr(conn, "y", "abc")
rockr.assign.expr(conn, "z", quote(tibble::tribble(
  ~colA, ~colB,
  'a',   1,
  'b',   2,
  'c',   3
)))
rockr.close(conn)

## End(Not run)

[Package rockr version 1.0.0 Index]