Loading...
 
Tiki and PluginR

Tiki and PluginR


Re: a better R workflow on a webserver

posts: 1817 Catalan Countries

Hi Joël:

What do you mean by:

(with a load message .temp/cache/R_Stats_%D0%9C%D0%B0%D0%B9%D0%BD%D0%B0/6d0b8396d6a7b97602e43bbfc3993451_1.png)


And regarding your last (initial) question:

Is it possible somehow to give to R server an initial object that all running processes use and that can be automatized via a bash script???


After loading the csv data, you would take profit of saving a binary image of your object to disk, so that further reads are way faster.

See this:

R code at the R console in RStudio for instance
Copy to clipboard
# load your csv (read.csv or by any other means) into the object myobject save(myobject, file="myobjectondisk.Rda") rm(myobject) # Notice that you don't have myobject loaded onto your workspace anymore. load(file="myobjectondisk.Rda")


Remember to use, then, the param in PluginR loadandsave="1" (which is enabled by default, by the way, since a few versions, for sake of easy usage of PluginR in most frequent use cases)

Hoep this helps...

There are no comments at this time.

Upcoming Events

1)  18 Apr 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7) 
Tiki birthday
8)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting