[Rcpp-devel] Read csv and export object in R

Dirk Eddelbuettel edd at debian.org
Mon Apr 20 13:16:14 CEST 2015


On 20 April 2015 at 12:01, ogami musashi wrote:
| Problem is..i have 400 object of 16,5 Mb each. and it take about 6 hours 
| to reimport in R! I use the readr package as this is the fastest base 
| function in R.

a) readr != base R

b) fread in package data.table is considered the fastest reader function

| I adapted a C++ code to use Rcpp, it compiles but when using it it 
| crashes R:

I fear you may have to debug that yourself.  As for speed, you won't be able
to beat fread which has been optimised for this for years and uses mmap and
other tricks.

Dirk

-- 
http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org


More information about the Rcpp-devel mailing list