Hi,
My actual code does something useful, but for illustration I have these
three pieces of code:
test1.jl
# TEST 1
using RCall
path_fig = string("some string")
R"""
print("Test 1")
path_fig <- $path_fig
"""
test2.jl
# TEST 2
using RCall
path_fig = string("some string")
R"""
print("Test 2")
library(zoo, lib.loc="C:/Users/jmg/Documents/R/win-library/3.2")
library(hydroGOF, lib.loc="C:/Users/jmg/Documents/R/win-library/3.2")
library(labeling, lib.loc="C:/Users/jmg/Documents/R/win-library/3.2")
library(ggplot2, lib.loc="C:/Users/jmg/Documents/R/win-library/3.2")
"""
test3.jl
# TEST 3
using RCall
path_fig = string("some string")
R"""
print("Test 3")
library(zoo, lib.loc="C:/Users/jmg/Documents/R/win-library/3.2")
library(hydroGOF, lib.loc="C:/Users/jmg/Documents/R/win-library/3.2")
library(labeling, lib.loc="C:/Users/jmg/Documents/R/win-library/3.2")
library(ggplot2, lib.loc="C:/Users/jmg/Documents/R/win-library/3.2")
path_fig <- $path_fig
"""
The two first tests work fine, but the last one (combining the two first)
fails giving this error message:
ERROR: LoadError: RCall.jl: unexpected string constant
in include at boot.jl:261
in include_from_node1 at loading.jl:320
while loading C:\TESTS\test3.jl, in expression starting on line 16
If I copy-and-paste the code (only the R part) into the REPL when using the
R mode then everything works fine. Does anyone spot the problem?
I get some of these errors once in a while, and I can solve them by
rearranging the code, or separating the R code in several R""" """-blocks,
but it usually takes some time.
Finally, I think RCall is an extremly useful package (apart from this
problem I have).
Thanks for any help :)
Jan
*I am using the following julia version:*
julia> versioninfo()
Julia Version 0.4.6
Commit 2e358ce (2016-06-19 17:16 UTC)
Platform Info:
System: Windows (x86_64-w64-mingw32)
CPU: Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz
WORD_SIZE: 64
BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Sandybridge)
LAPACK: libopenblas64_
LIBM: libopenlibm
LLVM: libLLVM-3.3
--
You received this message because you are subscribed to the Google Groups
"julia-stats" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.