WeBWorK Main Forum

Using R packages in WeBWorK problems

Using R packages in WeBWorK problems

by Randall Pruim -
Number of replies: 2
Greetings from JMM.

We recently upgraded our WeBWorK server and now have R integration. This is great news, but I can't find any documentation that tells me how to use R packages (or that it isn't possible). Using R without any packages is very limiting, so I'd like to be able to this.

Even if packages cannot be loaded inside a problem, I'd settle for being able to include the packages I want in some sort of server configuration. (But this makes the problems less portable. It would be better if the problem indicated which packages were required for the problem to work.)

Does anyone know how to work with R packages in WeBWorK?

---rjp


In reply to Randall Pruim

Re: Using R packages in WeBWorK problems

by Randall Pruim -
For reasons I can't explain, the thing I had originally tried is now working (just using library() in an reserve_eval() call). Perhaps something changed on our server or it took some time for information to propagate.

Sorry for the false alarm.

---rjp
In reply to Randall Pruim

Re: Using R packages in WeBWorK problems

by Danny Glin -
We've been doing this for a while.

Making changes on the R side sometimes requires the R server to be restarted, but other than that this has worked smoothly for us.