assign("shape", get("Cretaceous"))
plot(shape)
results in the following error:
Error in as.double(y) :
cannot coerce type 'S4' to vector of type 'double'
However, this works fine:
library(sp)
assign("shape", get("Cretaceous"))
plot(shape)
so it looks like the dependency isn't loaded properly (or at all).
results in the following error:
However, this works fine:
so it looks like the dependency isn't loaded properly (or at all).