Description Usage Arguments Value See Also Examples
Assign an R expression or R data to a symbol in the remote R session.
1 | rockr.assign(conn, symbol, value, async = FALSE)
|
conn |
A rockr connection object. |
symbol |
Name of the R symbol. |
value |
Value to assign to the symbol: can be a data 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. |
The command object if async is TRUE
Other assignment functions:
rockr.assign.data()
,
rockr.assign.expr()
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ## Not run:
conn <- rockr.connect(username='user', password='password',
url='https://rocker-demo.obiba.org')
rockr.open(conn)
rockr.assign(conn, "mtcars", mtcars)
rockr.assign(conn, "x", 123)
rockr.assign(conn, "y", "abc")
rockr.assign(conn, "z", quote(tibble::tribble(
~colA, ~colB,
'a', 1,
'b', 2,
'c', 3
)))
rockr.close(conn)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.