'overlay' is not an exported object from 'namespace:sp' [duplicate]
问题 This question already has an answer here : How should I deal with “'someFunction' is not an exported object from 'namespace:somePackage'” error? (1 answer) Closed yesterday . I have some code showing this error, but, I haven't called "overlay", maybe it's a library function that is calling it Code: d.mle=likfit(P, ini.cov.pars = c(1,30), cov.model = 'matern', kappa = 0.5) d.mle Xb = c(1, size, size, 1) Yb = c(1, 1, size, size) bordas = cbind(Xb, Yb) polygon(bordas) Ap = matrix(apply(bordas, 2