[Rcpp-devel] Readin cvs files in Rcpp package
edd at debian.org
Thu Jul 23 16:17:39 CEST 2015
On 23 July 2015 at 16:07, Hmamouche Youssef wrote:
| I'm trying te read a csv file in Rcpp package, with C++ function:
| ifstream ifs("FileName.csv")
| I'm using Rcpp modules , and the code work with Qt creator (purly in C++), but
| Rcpp cant' find the csv file in his stuctur.
| I remark also that the package work well without importing csv file, so the
| problem is that my Rcpp package cant' find csv file.
You may find a Google query such
how to change working directory from C code
helpful, or think about how the 'filename' argument can also support a path.
This isn't an Rcpp question, but an elementary programming issue. It might
be polite to use a more appropriate venue for this.
http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org
More information about the Rcpp-devel