Just for the record, I get the same issue as the reported on my mac

On Fri, Sep 30, 2016 at 4:51 PM, Michael Krabbe Borregaard <
[email protected]> wrote:

> I know this is a silly workaround that does not solve the issue, but could
> you:
> ```
> libpath = "C:/Users/jmg/Documents/R/win-library/3.2"
> R"""
> print("Test 5")
> library(zoo, lib.loc=$libpath)
> """
>
>
> On Fri, Sep 30, 2016 at 4:38 PM, Jan Magnusson <[email protected]>
> wrote:
>
>> Yes, here is a reduced example that works:
>>
>> R"""
>> print("Test 4")
>> library(nlme)
>> path_fig <- $path_fig
>> """
>>
>> This minimal example has the same structure as the failing one in my last
>> post (Test 3). Perhaps it has to do with the lib.loc path that I have to
>> use since I don´t have admin privileges on my machine. I can only install
>> stuff on my user account. But take a look at the sequence of tests below.
>> It is kind of awkward and I don´t find any pattern in the behavior yet.
>> Perhaps it is only a random issue with RCall, Julia and Windows.
>>
>> path_fig = string("some string")
>>
>> *# WORKS*
>>
>> R"""
>> library(zoo, lib.loc="C:/Users/jmg/Documents/R/win-library/3.2")
>> path_fig <- $path_fig
>> """
>>
>> *# ADD ANOTHER LIB - WORKS*
>>
>> R"""
>> print("Test 5")
>> 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")
>> path_fig <- $path_fig
>> """
>>
>> *# ADD ANOTHER LIB - WORKS*
>>
>> R"""
>> print("Test 5")
>> 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")
>> path_fig <- $path_fig
>> """
>>
>> *# ADD ANOTHER LIB - DOES NOT WORK!!!*
>>
>> R"""
>> print("Test 5")
>> 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
>> """
>>
>> ERROR: RCall.jl: unexpected string constant
>>
>> *# ONLY USE LAST LIB - WORKS*
>>
>> R"""
>> print("Test 5")
>> library(ggplot2, lib.loc="C:/Users/jmg/Documents/R/win-library/3.2")
>> path_fig <- $path_fig
>> """
>>
>> *# USUALLY I HAVE TO BREAK THE CODE IN SEVERAL BLOCKS.*
>> *# THE ONE BELOW WORKS! BUT SOMETIMES IT TAKES QUITE SOME TIME *
>> *# TO FIND "THE RIGHT" BLOCK STRUCTURE.*
>>
>> R"""
>> print("Test 5")
>> library(zoo, lib.loc="C:/Users/jmg/Documents/R/win-library/3.2")
>> """
>>
>> R"""
>> 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
>> """
>>
>>
>>
>>
>>
>> --
>> 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.
>>
>
>

-- 
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.

Reply via email to