I have an asp.net app where I am using R.NET. Everything works fine until I load a package using
library()
The web app of course runs in IIS and I get this error
Error: package or namespace load failed for 'lattice'".
Though it loads and works perfectly fine in Rstudio.
Its some problem of R.NET not working with IIS.
I have been searching around and it has been marked as a Known Issue on https://rdotnet.codeplex.com/. I was wondering if any one has found a workaround for this error.
I went through https://github.com/jmp75/rdotnet/issues/9 but it did not work for me.
The documentation page http://jmp75.github.io/rdotnet/ts_asp_dot_net/ describes a problem very similar to yours. Can you read it, and its companion page http://jmp75.github.io/rdotnet/tut_asp_dot_net/, and report here if this solves your issue? (for future reference by other readers)