WeBWorK Main Forum

Help with using R in WeBWorK - connection problem

by Murphy Waggoner -
Number of replies: 2
I'm trying to work with ITS to get a test server running with WeBWorK 2.13 and R so I can use Rserve commands.
• Thinking that we had done everything needed we tried out Library/UBC/SPPH/SPPH400/hw05/hw05_q01.pg from the OPL. We get this error. We get the same error for any problem we try with rserve commands.

1. ERROR caught by Translator while processing problem file:Library/UBC/SPPH/SPPH400/hw05/hw05_q01.pg **************** ERRORS from evaluating PG file:
connect: Connection refused at line 129 of [PG]/macros/RserveClient.pl Died within Carp::croak called at line 27 of /usr/local/share/perl/5.22.1/Statistics/R/IO/Rserve.pm from within Statistics::R::IO::Rserve::fh called at line 323 of /usr/local/share/perl/5.22.1/Statistics/R/IO/Rserve.pm from within Statistics::R::IO::Rserve::_send_command called at line 234 of /usr/local/share/perl/5.22.1/Statistics/R/IO/Rserve.pm from within Statistics::R::IO::Rserve::eval called at line 129 of [PG]/macros/RserveClient.pl from within main::rserve_start called at line 144 of [PG]/macros/RserveClient.pl from within main::rserve_eval called at line 38 of (eval 1138)
Suggestions? Thanks.

Re: Help with using R in WeBWorK - connection problem

by Danny Glin -
Did you install the R server? R and Rserve need to be installed separately from WeBWorK, and the R server has to be running on the WeBWorK server so it has something to connect to.

The instructions for using R with WeBWorK can be found at http://webwork.maa.org/wiki/R_in_WeBWorK.