Knitr problem

Paul A. Rubin parubin73 at gmail.com
Sat Nov 21 19:06:26 UTC 2020


On 11/20/20 6:43 PM, jcredberry at gmail.com wrote:
> Dear all,
>
> I am currently working on an old Beamer document that used to work 
> flawlessly. This document has several slides with R code via knitr. It 
> seems knitr cannot load some libraries that are installed in my R (4.0.3):
>
> library("BSDA")
> ## Error in library("BSDA"): there is no package called ’BSDA’
>
> Or while trying to run a snippet with ggplot2:
>
> library(ggplot2)
> ggplot(data=datos2)+
> geom_density(aes(x=value,
> colour=variable,
> fill=variable),alpha=0.2)
> ## Error in loadNamespace(name): there is no package called ’farver’
>
> Any ideas? Again, all the packages are installed and running.
>
> Thanks in advance. Regards,
> Julio Rojas
> jcredberry at gmail.com <mailto:jcredberry at gmail.com>
>
Julio,

You didn't mention your OS. Is is possible that knitr and R (base) are 
installed for all users but that (a) your R packages are installed for a 
specific user account and (b) that's not the user account that is 
running LyX (and hence knitr)?

Paul

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20201121/006a3f1b/attachment.html>


More information about the lyx-users mailing list