Open oliviaAB opened 5 years ago
Works OK for me with the CRAN version of the package, running under MacOSX 10.12:
x2 = juliaEval("[i for i in 1:1001]") juliaGet(x2) [1] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 [16] 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 ...
From sessionInfo()
I have the version XRJulia_0.7.9
. I used the Github version rather than the CRAN version to avoid the problem caused by RJulia() when you specify the port ID to use. I'll try to re-install it.
EDIT: I re-installed the version 0.7.8 (the CRAN version being 0.7.7 if I'm not wrong), and the problem was solved! Thank you for answering so quickly.
You're right though. It's a bug introduced in the modifications for 0.7.9. I'll try to track it down, but not for a few days.
Thanks for the report.
Turned out to be an easy fix; for the new fast transfer of data, the Julia side needs to convert Int64 arrays to Int32 before writing.
Also incremented the version number and added a draft vignette on data transfer.
Anyone reading this, please try out transferring long(er) arrays, which should now be much faster.
Hi,
I noticed a strange problem when playing with long arrays and passing them from R to Julia. When creating arrays of length
<1000
, no problem:returns:
However, if the array length exceeds
1001
, the value returned to R is as follow:Zeros are inserted between the values of the array that Julia returns. Is there any way to correct that?
Thank you very much!
Olivia