Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pm_getmap error #2

Open
willgearty opened this issue Jun 9, 2017 · 2 comments
Open

pm_getmap error #2

willgearty opened this issue Jun 9, 2017 · 2 comments

Comments

@willgearty
Copy link

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.

@ghost
Copy link

ghost commented Oct 8, 2017

Hi Willgearty,
I got the same problem. then I tried what you suggested:

shape <- assign("shape", get("Cretaceous"))
shape
class : SpatialPolygonsDataFrame
features : 86
extent : -180, 180, -88.8737, 83.6951 (xmin, xmax, ymin, ymax)
coord. ref. : NA
variables : 13
names : PLATEID1, GPGIM_TYPE, TYPE, FROMAGE, TOAGE, NAME, DESCR, FEATURE_ID, PLATEID2, L_PLATE, R_PLATE, RECON_METH, SPREAD_ASY
min values : 0, gpml:UnclassifiedFeature, NA, 0, 0, NA, NA, GPlates-052973e4-ed8e-43bf-85b4-aa178e2242a8, 0, 0, 0, NA, 0
max values : 0, gpml:UnclassifiedFeature, NA, 0, 0, NA, NA, GPlates-ffbfeec0-bf61-4769-ac12-bf43ec206a14, 0, 0, 0, NA, 0

but it doesn't come out with any shape of map or plot..
I need Oligocene, Miocene epoch maps of the world...but don't get the example map.
Thank you!
Best,

@ghost
Copy link

ghost commented Oct 8, 2017

Got it. Here is:

shape <- assign("shape", get("Oligocene"))
shape
plot(shape)
Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant