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

Q: Is it recommended to compile the package outside of R? #521

Closed
candychiu opened this issue Jul 28, 2016 · 2 comments
Closed

Q: Is it recommended to compile the package outside of R? #521

candychiu opened this issue Jul 28, 2016 · 2 comments

Comments

@candychiu
Copy link

I'd like compile a custom package outside of R using another IDE. Here are the steps I am taking:

  1. Generate package using Rcpp.package.skeleton.
  2. Create an interface cpp file which contains the // [[Rcpp::export]] functions.
  3. Run compileAttributes. At this point, I have all the interface files I need to compile.
  4. In the IDE, compile a dll with the cpp files generated above. Put the dll in the proper package location.
  5. Build package in a command window by R CMD build mypackage.

Can anyone see any potential problem with this procedure?

@eddelbuettel
Copy link
Member

You are making up the process from 1. to 5. so you get to answer your own questions.

R has worked hard to provide its own extremely reliable build mechanism, and Rcpp uses that. All that is sufficiently documented. Unless you give a good reason not, I plan to close this as there is no documented shortcoming in Rcpp here -- you just happen to think you need another IDE. Which is fine. But you get to work out how to use it.

@candychiu
Copy link
Author

@eddelbuettel Thanks.

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