Search code examples
pythonrperlfile-iocran

Writing a RDS file outside R


I need to feed an R code with a vector from an external source and be fast, so I want to avoid reading generic files, such as csv. I thought that writing outside R a RDS file could be a good idea.

Is there any library or wrapper in C, C++, Python, Perl able to write in RDS format?

P.S. If you know a better way, other than RDS, suggestions are welcome.


Solution

  • Have you used ??

    ??rds  # brings up ...
    ?readRDS   # from the base package.
    

    (You perhaps want to adapt the code from .Internal(serialize, ...)?)