Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8694665
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T00:50:19+00:00 2026-06-13T00:50:19+00:00

When I came to know that I can create a R package with C++

  • 0

When I came to know that I can create a R package with C++ using Rcpp, I was excited about it and eager to know development environment for it. And thanks to Fell Stat Blog, I could quickly establish a great environment using Eclipse with StatET, its plugin for R, to use Rcpp and RInside (another package for embedding R into your C++ application) on Windows.

Since the blog was, however, based on OS X, several things required trial & error (& almost give-up) to adjust for Windows – it took me 6 hours of my leisure time. For example, you need to install Rtools to be able to compile C/C++ using R CMD statements and Miktex to convert your Rd files to pdf file. In addition, build settings are different from OS X.

In order to save others from possible trial & error period I’ve experienced, I made this wiki on Eclipse + StatET + Rcpp on Windows. Feel free to make comment or another answer. Otherwise, enjoy this great open source environment for analytical software development you can get.

UPDATE (late 2016): Few years ago, I changed IDE for R from Eclipse to RStudio and I recommend it for everyone using R and Rcpp.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T00:50:20+00:00Added an answer on June 13, 2026 at 12:50 am

    For this wiki, I will proceed my talk based on the latest version of R, R 2.15.1 and this is the list of steps you need to follow.

    1. If you have already installed R in your Windows system, make sure its path does not include space such as “C:\Program Files\R\R-2.15.1”. If so, there is nothing you can do but reinstall your R system to a directory such as “C:\R\R-2.15.1”. If you don’t do that, Rcpp or RInside will not work on your system.

    2. Install Rtools (Rtools2.15.1 in this case) This installer includes basic tools to run R CMD and related things and gcc compiler. I installed this into “C:\Rtools”

    3. (Optional) You can install MikTex to automatically generate pdf file from your Rd files when R CMD check executed. Make sure <Miktext installation directory>\miktex\bin is in your system path.

    4. Include following directories into your system path. This is important. Otherwise, most of them here will not work.

      C:\Rtools\bin;
      C:\Rtools\gcc-4.6.3\bin;
      C:\R\R-2.15.1\bin\i386;

    5. If you don’t have Eclipse yet, please install it with CDT If you have it already, make sure you have installed CDT plugin.

    6. Now it’s time to install an Eclipse plugin for R, StatET As the web site suggested, I used http://download.walware.de/eclipse-3.8 to install it. After that, ran R windows and installed Rj install.packages(c("rj", "rj.gd"), repos="http://download.walware.de/rj-1.1")
      After that, you are done with installing StatET. In Eclipse, follow Cheatsheet of StatET to make yourself familiar with the environment. Especially, create R environment, R console configuration, external configuration for R CMD check, build, install so you can run R and its CMD in Eclipse.

    7. It’s time to install Rcpp and RInside. As Fell Stat recommended, I used following in R console in Eclipse to do that. install.packages(c("Rcpp","RInside"),type="source") This will get source of Rcpp and RInside from internet and compile them before installing them. If you get any error message here, it’s good time to check you followed everything I described above. In my case, I got some when I didn’t set system path right or when my R path included space.

    8. Now it’s time to examine the environment with a test project. For this, I recommend you read step 4, 5, 6, 7 of Fell Stat Blog. One thing I recommend is that when you create a sample project, use

      Rcpp.package.skeleton("MyCppPackage", module=TRUE)

      That way, you would experience power of Rcpp with Rcpp modules.

    9. As I said, in #7, some settings are different from OS X on Windows. I will just display my setting here on images. Here, I didn’t set directories for RInside, but I hope you can easily figure this out from Rcpp setup.

    enter image description here
    enter image description here
    enter image description here

    Hope this helps. Enjoy.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I came to know that using Reflection we can create objects without using new
I recently came to know that in C++ pure virtual functions can optionally have
I came to know that aqualogic service bus is renamed to oracle service bus
I came to know that Grails service class are of Singleton type. For what
I just came to know that it's possible to record call voice (both incoming
After googling i came to know that Index seek is better than scan. How
i have googled and came to know that how to use the variable arguments.
I know that the reason that Microsoft came out with ASP.NET MVC was to
After going through couple of linksI came to know that Perl does the compilation
I am trying to create an app that can "Purposely" consume RAM as much

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.