A driver to parse sphinx noweb files with Sweave tool This driver parses sphinx files containing R code and replace pieces of code with their output.
RweaveReSTSetup
weaverReSTSetup
weaverReST
RweaveReST()RweaveReSTSetup(
file,
syntax,
output = NULL,
quiet = FALSE,
debug = FALSE,
extension = "rst",
backend = "docutils, sphinx, ...",
openSchunk = "\n.. code-block:: r\n",
closeSchunk = "\n\n",
openSinput = "",
closeSinput = "",
openSoutput = "\n\n",
closeSoutput = "\n",
indent = " ",
openInclude = ".. include::",
closeInclude = ".rst",
openFig = ".. figure:: ",
closeFig = "",
...
)
weaverReSTSetup(
file,
syntax,
output = NULL,
quiet = FALSE,
debug = FALSE,
extension = "rst",
backend = "docutils, sphinx, ...",
openSchunk = "\n.. code-block:: r\n",
closeSchunk = "\n\n",
openSinput = "",
closeSinput = "",
openSoutput = "\n\n",
closeSoutput = "\n",
indent = " ",
openInclude = ".. include::",
closeInclude = ".rst",
openFig = ".. figure:: ",
closeFig = "",
use.cache = TRUE,
...
)
weaverReST()
None value is returned. From a .Rnw noweb file, the corresponding .rst is produced (as eventuals files for graphs).
file
syntax
output
quite
debug
...
use.cache
David Hajage dhajage@gmail.com
Sweave
, ReST
if (FALSE) {
ReST("file.Rnw")
}
Run the code above in your browser using DataLab