Skip to content
Back to formatted view

Raw Message

Message-ID: <50486F3885905241A1890719DAFDD3447FE90A4F4D@gmc0050.ci.org>
Date: 2011-11-07T15:59:05Z
From: Andrew Ziem
Subject: R in batch mode packages loading question
In-Reply-To: <4EB7B7A2.3030209@developpement-durable.gouv.fr>

Try the fork() function in the package multicore (if your system supports it)


Andrew


-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf Of PALMIER Patrick (Responsable de groupe) - CETE NP/TM/ST
Sent: Monday, November 07, 2011 3:49 AM
To: r-help at r-project.org
Subject: [R] R in batch mode packages loading question

Hello,


I use R in batch mode. Each time, I execute a script, R is loading each packages I need in my script. That's Ok But, I had to execute many scripts , and each time R is re-loading the corresponding packages, which take to much time

Is it possible ask R to load the packages only once, and stay in memory in background for further scripts, which would avoid to load the packages in each script, or if you have another solution that need to only load packages once in the first scripts, so that further scripts do not need to load these packages too.


Thanks in advance
-- 

*Patrick PALMIER**
**Centre d'?tudes Techniques de l'?quipement Nord - Picardie D?partement Transport Mobilit?s */*Responsable du groupe Syst?mes de Transports*//* */2, rue de Bruxelles, BP 275
59019 Lille cedex
FRANCE
T?l: +33 (0) 3 20 49 60 70
Fax: +33 (0) 3 20 49 63 69