I am running many dispersion models in a loop. It works perfectly fine, and gives me the data on particle locations, when I run it from Rstudio. It also works when I load R on linux and test the code in the R interpreter. However, it fails when I submit the R script as a batch job (through slurm). It's weird because the code runs fine, but it generates empty dataframes.
The error says "in system(sys_cmd): error in running command"
Use `spec()` to retrieve the full column specification for this data.
Specify the column types or set `show_col_types = FALSE` to quiet this message.
[1] "ID-51-plant-152-unit-1-date-2015-04-20"
trying URL 'ftp://arlftp.arlhq.noaa.gov/archives/reanalysis/RP201504.gbl'
Content type 'unknown' length 119139360 bytes (113.6 MB)
==================================================
[1] "ID-51-plant-152-unit-1-date-2015-05-20"
trying URL 'ftp://arlftp.arlhq.noaa.gov/archives/reanalysis/RP201505.gbl'
Content type 'unknown' length 123110672 bytes (117.4 MB)
==================================================
[1] "ID-52-plant-153-unit-2-date-2015-04-01"
trying URL 'ftp://arlftp.arlhq.noaa.gov/archives/reanalysis/RP201504.gbl'
Content type 'unknown' length 119139360 bytes (113.6 MB)
==================================================
[1] "ID-52-plant-153-unit-2-date-2015-05-01"
trying URL 'ftp://arlftp.arlhq.noaa.gov/archives/reanalysis/RP201505.gbl'
Content type 'unknown' length 123110672 bytes (117.4 MB)
==================================================
Warning messages:
1: In system(sys_cmd) : error in running command
2: In system(sys_cmd) : error in running command
3: In system(sys_cmd) : error in running command
4: In system(sys_cmd) : error in running command
5: In system(sys_cmd) : error in running command
6: In system(sys_cmd) : error in running command
7: In system(sys_cmd) : error in running command
8: In system(sys_cmd) : error in running command
Again, this code works and give me the dispersion_model object with all the data when I run it directly in Rstudio. But the dataframe comes out empty when I submit the script as a job in linux.
Any idea why this might be happening, and how to solve it?
Thanks
I am running many dispersion models in a loop. It works perfectly fine, and gives me the data on particle locations, when I run it from Rstudio. It also works when I load R on linux and test the code in the R interpreter. However, it fails when I submit the R script as a batch job (through slurm). It's weird because the code runs fine, but it generates empty dataframes.
The error says "in system(sys_cmd): error in running command"
And my code:
Again, this code works and give me the dispersion_model object with all the data when I run it directly in Rstudio. But the dataframe comes out empty when I submit the script as a job in linux.
Any idea why this might be happening, and how to solve it? Thanks