forked from magpiemodel/magpie
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.snapshot.Rprofile
23 lines (20 loc) · 1008 Bytes
/
.snapshot.Rprofile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# source global .Rprofile (very important to load user specific settings)
# DO NOT EDIT THIS LINE!
if(file.exists("~/.Rprofile")) source("~/.Rprofile")
# This profile can be used to link the model to a specified library snapshot
# (e.g. if your model version is from an older date and does not work with the
# newest libraries anymore).
# By default it is not active. Just uncomment the following lines and set the
# snapshot path to a path of your choice.
# Please make also sure that in your config file this .Rprofile file is copied
# to the model output folder. Otherwise, the run itself will again use the
# default library set!
# PLEASE NOTE: snapshots ending with '_R4' require R 4.1 (piam/1.24 and newer),
# other snapshots require R 3.6 (piam/1.20)
# snapshot <- "/p/projects/rd3mod/R/libraries/snapshots/2022_10_28_R4"
# if(file.exists(snapshot)) {
# cat("Setting libPaths to",snapshot,"\n")
# .libPaths(snapshot, include.site = FALSE)
# } else {
# cat("Could not find",snapshot,"\n")
# }