senseyeio / roger

Golang RServe client. Use R from Go
MIT License
272 stars 34 forks source link

Large string assignment #36

Closed dareid closed 7 years ago

dareid commented 7 years ago

Adding the following test in assignment_test.go fails due to the string length:

func TestLargeStringAssignment(t *testing.T) {
    checkAssignment(t, strings.Repeat("a", 20000000))
}
dareid commented 7 years ago
The current implementation uses DT_LARGE/XT_LARGE only for SEXPs larger than 0xfffff0.
No commands except for CMD_set/assignREXP with DT_REXP accept large input,
in particular all file operations. All objects smaller 8MB should be encoded without
the use of DT_LARGE/XT_LARGE.

https://raw.githubusercontent.com/s-u/Rserve/master/src/Rserv.c