Rcpp11 / attributes

Standalone implementation of Rcpp attributes.
Other
3 stars 1 forks source link

strange error in attributes::sourceCpp("test.cpp") #34

Closed jedazard closed 10 years ago

jedazard commented 10 years ago

While testing the Rcpp11 installation (from Github) on my laptop (Windows 8.1), I get the following error :

writeLines( '

  • include

  • // [[export]]
  • IntegerVector foo(){
  • return {1, 2, 3} ;
  • }
  • ', "test.cpp" )

attributes::sourceCpp("test.cpp", verbose=T) Error in system("uname -r", intern = TRUE) : 'uname' not found

This is strange because it did not appear during the UseR 2014 tutorial about a week ago and it persists even after re-installing R 3.1.0 and Rtools 3.1... I checked the Rtools installation, it seems fine. Libraries 'Rcpp11' and 'attributes' load properly. Also happens on Desktop (Windows 7)... Bizarre. Any idea?

kevinushey commented 10 years ago

I know what's happening here and will produce a fix soon today. Thanks for the report! On Jul 7, 2014 8:25 AM, "jedazard" notifications@github.com wrote:

While testing the Rcpp11 installation (from Github) on my laptop (Windows 8.1), I get the following error :

writeLines( '

  • include

    -

  • // [[export]]
  • IntegerVector foo(){
    • return {1, 2, 3} ;
  • }
  • ', "test.cpp" )

attributes::sourceCpp("test.cpp", verbose=T) Error in system("uname -r", intern = TRUE) : 'uname' not found

This is strange because it did not appear during the UseR 2014 tutorial about a week ago and it persists even after re-installing R 3.1.0 and Rtools 3.1... I checked the Rtools installation, it seems fine. Libraries 'Rcpp11' and 'attributes' load properly. Also happens on Desktop (Windows 7)... Bizarre. Any idea?

— Reply to this email directly or view it on GitHub https://github.com/Rcpp11/attributes/issues/34.

jedazard commented 10 years ago

Works! (after re-installing the Rcpp11 and attributes libraries from GitHub) Even on Windows machines... apparently.