Some of the pg files using R to generate images produce errors. The Rserve connection seems to be working for other problems requiring R. An example of a pg file that does not work is this:
Library/UBC/STAT/STAT300/hw06/stat300_hw06_q01.pg
It produces the error:
ERRORS from evaluating PG file:
Error in plot.new() :
could not open file '/tmp/RtmpBSRSTN/file7cbaebab4ac.png'
Died within Rserve::try_eval called at line 146 of [PG]/macros/RserveClient.pl
from within main::rserve_eval called at line 54 of (eval 4062)
It seems that the png file was created successfully. Where exactly should this file be? Isn't /tmp/Rserv the working directory of Rserve ? Is '/tmp/RtmpBSRSTN/file7cbaebab4ac.png' refer to a subdirectory of the webwork directory structure?