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

Add exportMethods(plot) & exportClasses(ModelEvaluation) to NAMESPACE #37

Closed
SimonDedman opened this issue Mar 9, 2023 · 2 comments
Closed

Comments

@SimonDedman
Copy link

Hi Robert, hope you're well. I was wondering if it would be possible for you to add

exportMethods(plot)
exportClasses(ModelEvaluation)

to dismo's NAMESPACE?

I'm trying to run a function which uses various dismo functions including evaluate, and then plotting the resultant object, but it's suddenly started failing with

plot: Error in as.double(x): cannot coerce type 'S4' to vector of type 'double'

I believe this may be because dismo doesn't export its plot method of ModelEvaluation class, so when run in a function, plot defaults to base graphics, and thus expects x to be a double rather than a ModelEvaluation class.

Thanks in advance, and thanks for all of your work on this!

@rhijmans
Copy link
Member

Thanks, added these to NAMESPACE.

@SimonDedman
Copy link
Author

Hero. Thanks. Enjoy the rest of your weekend!

@SimonDedman SimonDedman mentioned this issue May 18, 2023
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

2 participants