FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Update README.md with note on imports by pepijn-devries · Pull Request #316 · r-lib/cpp11 · GitHub

/ cpp11 Public

Update README.md with note on imports - #316

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

pepijn-devries wants to merge 1 commit into
r-lib:mainfrom
pepijn-devries:main

Conversation

Copy link
Copy Markdown

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.

Copy link
Copy Markdown
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.

Copy link
Copy Markdown
Author

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

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL