PDF compiling errors (tinytex)

Hello! I've been trying to compile a .rnw file into a pdf, but I repeatedly get this error message relating to the numprint.sty package.

! Undefined control sequence.
l.120 \SweaveOpts
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., \hobx'), type I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

The last time I had this error, I resolved it by changing my global options in Rstudio, to Weave Rnw files using knitr instead of Sweave. However, this time the error persists regardless of which setting I use, or if I open a new copy of the .RNW file under the correct settings. How should I proceed?

Can you share a reproducible example that we can look at and try ?

If this is only happening with RStudio IDE, and you can reproduce always, you should open an issue in there Github Repo sharing the example that creates the error.

This topic was automatically closed 45 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.