Skip to content

RCaller DataFrame fails when passing data to R in Windows OS #29

Description

@george-kakarontzas

Running the test class in https://github.com/jbytecode/rcaller/blob/master/RCaller/src/test/java/com/github/rcaller/datatypes/DataFrameTest.java in windows 10 fails in two tests as shown below. My best guess is the way that the data frame data is transferred to R according to the manual (https://github.com/jbytecode/rcaller/blob/master/doc/rcaller3/rcaller3.pdf, page 6). There it mentions that "In order to obtain the best performance and avoid any data loss, RCaller exports the data contained in the DataFrame object as a csv file. The path of the file will be transferred to R and it will be imported using the function read.csv on the R side.". Maybe in the path that is transferred backslashes are not escaped properly for windows OS?
Tests in error:
writeBigDataFrame(usertests.DataFrameTest): R command failed with error. Reason: Error: '\d' is an unrecognized escape in character string starting ""c:\d"
writeDataFrameToRAndGetMean(usertests.DataFrameTest): R command failed with error. Reason: Error: '\d' is an unrecognized escape in character string starting ""c:\d"

Tests run: 13, Failures: 0, Errors: 2, Skipped: 0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions