Skip to content

Update README.md with note on imports #316

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

Closed
wants to merge 1 commit into from

Conversation

pepijn-devries
Copy link

When using functions from other packages using the cpp11 package function, I noticed that when calling such functions R would get stuck and doesn't throw errors or warnings. It took me a while to realise that these functions weren't imported to the namespace. After importing the functions, everything worked smoothly. I've added this note to help others avoid running into the same problem.

@romainfrancois
Copy link
Collaborator

Thanks for the contribution. I feel that this is a little too specific for a README. Perhaps we can instead do something here to error when the namespace is not found:

return safe[Rf_findVarInFrame](R_NamespaceRegistry, name_sexp);

with a clear error message, and some instructions on how to proceed.

@pepijn-devries
Copy link
Author

Thanks for the response. Yes an error-message will definitely help here.

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

Successfully merging this pull request may close these issues.

2 participants