Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Update Module.h#737

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
eddelbuettel merged 1 commit intoRcppCore:masterfromassassin5615:master
Aug 4, 2017
Merged

Conversation

@assassin5615
Copy link
Contributor

@assassin5615assassin5615 commentedAug 4, 2017
edited
Loading

Fixed compilation error in LOAD_RCPP_MODULE

Fixed compilation error in LOAD_RCCP_MODULE
@eddelbuettel
Copy link
Member

Nice. Can we possibly complement it with a test case? Do you have a usage example?

@assassin5615
Copy link
ContributorAuthor

actually, I am also wondering how this macro is intended to be used. currently, I am only using this macro as a reference for how to load a Module.

I am working on something that runs R inside c++, to use this Macro directly, it needs to be changed to something like LOAD_RCPP_MODULE(NAME, SEXP) ..... SEXP=Rf_eval(...), then I can write following code
RInside R(argc, argv); LOAD_RCPP_MODULE(Test, R['Test'])

anyone knows why this macro was added in the first place?

@eddelbuetteleddelbuettel merged commitbee6b1e intoRcppCore:masterAug 4, 2017
@eddelbuettel
Copy link
Member

How Modules get loaded changed once (basically from the R side). This macro may or may not predate that change, I am not sure at the moment. I always trigger the load from the R side.

@eddelbuettel
Copy link
Member

What name+email should I use for you in the ChangeLog?

@assassin5615
Copy link
ContributorAuthor

you can use Lei Yuleiyu_1981@qq.com.

I am working on something that needs to load module from the c++ side. I have to assign the value returned by Rf_eval in the macro to something like R['my_own_module'] to use it. if it can be used directly(no need to assign the return value to something), the macro is useful when it comes to loading module in c++.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@assassin5615@eddelbuettel

[8]ページ先頭

©2009-2025 Movatter.jp