Skip to content
Prev 79855 / 398502 Next

Problems with source() function

On 28 Oct 2005, aldeluis at usal.es wrote:

            
I'm not sure exactly what you are trying to accomplish, but I wonder
if either of the following two ideas would help you:

1. Instead of source(), consider loading the R code on the server side
   and then using save(..., compres=TRUE) to create a binary image.
   You can then feed that to the clients and have them use load().  

2. What happens if you gzip the code before sending and gunzip on the
   client side.  It may be less convenient, although supposedly there
   is a way to do the equivalent of gzfile(url(...)).

HTH,

+ seth