Skip to content

Update README.md with note on imports#316

Closed
pepijn-devries wants to merge 1 commit intor-lib:mainfrom
pepijn-devries:main
Closed

Update README.md with note on imports#316
pepijn-devries wants to merge 1 commit intor-lib:mainfrom
pepijn-devries:main

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