Message error 'C:/Program' not found with Rcpp

后端 未结 2 993
北恋
北恋 2020-12-19 13:48

I\'m running a 64-bit Windows 7 platform.

I have added to my installed programs/libraries:

  • Rtools

  • R (software)

  • Rcpp

2条回答
  •  清酒与你
    2020-12-19 14:26

    Following nograpes suggestion I get:

    >> setting environment variables: 
    PKG_LIBS =  C:/Users/ (...) /DOCUME~1/R/WIN-LI~1/3.0/Rcpp/lib/x64/libRcpp.a
    
    >> LinkingTo : Rcpp
    CLINK_CPPFLAGS =  -I"C:/Users/  (...)  /Documents/R/win-library/3.0/Rcpp/include" 
    
    >> Program source:
    
    1 : 
    2 : // includes from the plugin
    3 : 
    4 : #include 
    5 : 
    6 : 
    7 : #ifndef BEGIN_RCPP
    8 : #define BEGIN_RCPP
    9 : #endif
    10 : 
    11 : #ifndef END_RCPP
    12 : #define END_RCPP
    13 : #endif
    14 : 
    15 : using namespace Rcpp;
    16 : 
    17 : 
    18 : // user includes
    19 : 
    20 : 
    21 : // declarations
    22 : extern "C" {
    23 : SEXP file47844fc6c7a( SEXP ns, SEXP xs) ;
    24 : }
    25 : 
    26 : // definition
    27 : 
    28 : SEXP file47844fc6c7a( SEXP ns, SEXP xs ){
    29 : BEGIN_RCPP
    30 : int n = as(ns);
    31 : double x = as(xs);
    32 : for (int i=0; i         file47844fc6c7a.cpp.err.txt 
    Error in file(con, "r") : cannot open the connection
    In addition: Warning message:
    In file(con, "r") :
      cannot open file 'file47844fc6c7a.cpp.err.txt': No such file or directory
    

    But, I admit that doesn't help me that much.

提交回复
热议问题