Closed bbest closed 3 years ago
I was able to run on my machine the scripts listed in update-oceano.yml:
But kelp-forest_key-climate-ocean.Rmd
is throwing the same error after committing and trying again. Any ideas @superjai?
hey @bbest - issue fixed. Here's the successful github action.
There were multiple problems to be fixed.
right_dates <- SST_data[SST_data$date >= "2003-01-01" & SST_data$date <= "2017-12-31", ]
For some reason, within the docker container SST_data$date
was being interpreted as a factor and not as a date. In contrast, when run locally, SST_data$date
is interpreted as a date. Here's the evidence of that from one of the many GitHub Action failure logs:
1: In Ops.factor(SST_data$date, "2003-01-01") :
‘>=’ not meaningful for factors
The solution was easy enough, which was to force SST_data$date
to date format as follows:
right_dates <- SST_data[as.Date(SST_data$date) >= "2003-01-01" & as.Date(SST_data$date) <= "2017-12-31", ]