Variable: ob-R-transfer-variable-table-with-header

ob-R-transfer-variable-table-with-header is a variable defined in ob-R.el.gz.

Value

"%s <- local({\n     con <- textConnection(\n       %S\n     )\n     res <- utils::read.table(\n       con,\n       header    = %s,\n       row.names = %s,\n       sep       = \"\\t\",\n       as.is     = TRUE\n     )\n     close(con)\n     res\n   })"

Documentation

R code used to transfer a table defined as a variable from org to R.

This function is used when the table contains a header.

Source Code

;; Defined in /usr/src/emacs/lisp/org/ob-R.el.gz
;; The usage of utils::read.table() ensures that the command
;; read.table() can be found even in circumstances when the utils
;; package is not in the search path from R.
(defconst ob-R-transfer-variable-table-with-header
  "%s <- local({
     con <- textConnection(
       %S
     )
     res <- utils::read.table(
       con,
       header    = %s,
       row.names = %s,
       sep       = \"\\t\",
       as.is     = TRUE
     )
     close(con)
     res
   })"
  "R code used to transfer a table defined as a variable from org to R.

This function is used when the table contains a header.")