pm_getmap(interval="Cretaceous")(the example in the documentation) results in the following error and warning:
Error in readChar(con, 5L, useBytes = TRUE) : cannot open the connection
In addition: Warning message:
In readChar(con, 5L, useBytes = TRUE) :
cannot open compressed file 'Data/Cretaceous.rda', probable reason 'No such file or directory'
It looks like the function is trying to load an actual file (load(paste("Data/", interval, ".rda", sep = ""))), but the data is already in the environment since it is loaded with the package.
In this case, assign("shape", get("Cretaceous")) should be sufficient.
pm_getmap(interval="Cretaceous")(the example in the documentation) results in the following error and warning:It looks like the function is trying to load an actual file (
load(paste("Data/", interval, ".rda", sep = ""))), but the data is already in the environment since it is loaded with the package.In this case,
assign("shape", get("Cretaceous"))should be sufficient.