but this still didn't work, perhaps because it is a document class rather than a LaTeX package.
Can rnw_to_rmd() be adapted to use commands from the document class? If not, we might ship a simple jss.sty with the texor package that could be used when converting JSS vignettes, or add the main commands to the Metafix.sty.
There are only a few main commands: \proglang, \pkg and \code. rnw_to_rmd() converts \pkg{packagename} to *packagename* rather than **packagename** and \code{expression} is correctly converted to `expression`, but \proglang{R} is just dropped so this is particularly problematic.
Currently when converting vignettes using the jss document class, via
commands defined in
jss.cls
are not respected. I tried copying this file into the same directory as the.Rnw
file, viabut this still didn't work, perhaps because it is a document class rather than a LaTeX package.
Can
rnw_to_rmd()
be adapted to use commands from the document class? If not, we might ship a simplejss.sty
with the texor package that could be used when converting JSS vignettes, or add the main commands to the Metafix.sty.There are only a few main commands:
\proglang
,\pkg
and\code
.rnw_to_rmd()
converts\pkg{packagename}
to*packagename*
rather than**packagename**
and\code{expression}
is correctly converted to`expression`
, but\proglang{R}
is just dropped so this is particularly problematic.