none
Rcpp on mran 3.5.1 RRS feed

  • Question

  • Hi,

    I am using Ropen 3.5.1 and Rcpp 0.12.18. Below is the sample program which works fine on native R installation but doesnt work on MRAN.

     

    #include <RInside.h>                   

    int main(int argc, char *argv[]) {

        RInside RI(argc, argv);          
            RInside &R = RInside::instance();

        //R["txt"] = "Hello, world!\n";      
            R["dbl"] =8;
            //R["long"]=9;
        //R.parseEvalQ("cat(txt)");           
        R.parseEvalQ("cat(dbl)");           
        //R.parseEvalQ("cat(long)");          

        exit(0);
    }

    Below is the error I get when I run the program:

    Error: function 'dataptr' not provided by package 'Rcpp'
    In addition: Warning message:
    In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE,  :
      there is no package called âRcppâ
    Execution halted

    Can you suggest where its going wrong.

    Thanks


    Monday, February 25, 2019 11:44 AM