I am trying to use the package "rWBclimate", but nothing works and I keep getting the same error message.
Even when I try running code from the vignette (see code below) I get the same error
(https://cran.r-project.org/web/packages/rWBclimate/vignettes/rWBclimate.pdf).
I have tried several functions and I have fiddled around with the UTF-settings, I have also updated R and all packages to the latest versions...
library(rWBclimate)
usa.dat <- get_model_temp("USA", "mavg", 2080, 2100)
usa.dat.bcc <- usa.dat[usa.dat$gcm == "bccr_bcm2_0", ]
usa.dat.had <- usa.dat[usa.dat$gcm == "ukmo_hadcm3", ]
usa.dat.bcc$ID <- paste(usa.dat.bcc$scenario, usa.dat.bcc$gcm, sep = "-")
usa.dat.had$ID <- paste(usa.dat.had$scenario, usa.dat.had$gcm, sep = "-")
plot.df <- rbind(usa.dat.bcc, usa.dat.had)
ggplot(plot.df, aes(x = as.factor(month), y = data, group = ID, colour =
gcm, linetype = scenario)) + geom_point() + geom_path() + ylab("Average
temperature in degrees C \n between
xlab("Month") + theme_bw()
Error = "No encoding supplied: defaulting to UTF-8. Error in rep(locator, dim(data_out)[1]) : invalid 'times' argument"
Any suggestions?
Thank you