Load call with StartR works with R/3.6.1, not with R/3.6.2
I'm writing a script using StartR and I'm trying to use also Compute(). I first develop my script on nord3 but now, I'd like to use Compute() from WS.
On WS, it seems that if I want to use rstudio, I can only load R/3.6.1 as the more recent version. But on nord3, it's R/3.6.2
.
I tested my script with Rstudio and it works. I then wanted to launch it on WS but with the equivalent version, R/3.6.2
and it doesn't work. But it works with R/3.6.1
on WS... I'm a bit lost with the equivalence of the version between nord3 and ws...
My script is this one:
library(startR)
expid <- 'a3vg'
model <- 'EC-Earth3-HR'
compo <- 'Omon'
grid <- 'gn'
vari <- 'tosmean'
reg <- 'Nino3'
startdates <- as.character(c(seq(1990,1992)))
init_month <- 5
length_forecast <- 4
membs_num <- c(seq(1,2))
forecast_month <- c(seq(init_month,(init_month+length_forecast-1)))
membs <- paste0('r', membs_num, 'i1p1f1', sep="")
path <- paste0('/esarchive/exp/ecearth/', expid, '/diags/DCPP/EC-Earth-Consortium/', model, '/dcppA-hindcast/$memb$/', compo, '/$var$/', grid, '/v*/$var$_', compo, '_', model, '_dcppA-hindcast_s$sdate$-$memb$_', grid, '_$chunk$.nc')
data_exp_retrieved <- startR::Start(dat = path,
var = vari,
memb = membs,
region = reg,
region_var = 'region',
sdate = startdates,
time = c(1:length(forecast_month)),
chunk = 'all',
chunk_depends = 'sdate',
time_across = 'chunk',
merge_across_dims = TRUE,
return_vars = list(time=c('sdate','chunk'), region=NULL),
retrieve = T)
And my question is: why does it work with R/3.6.2 on nord3 but not on WS (but it works with R/3.6.1 on WS)?
Thanks!