The basic answer is that newer versions than Julia 0.6.4 don't work with JuliaCall
and XRJulia
packages. They worked on my system after installing Julia 0.6.4.
Following Consistency request:
NOTE: I run this test with both Julia 0.7
and Julia 1.0
Julia 1.0___________________________________________________________________________
trace(dyn.load, quote(print(x)))
julia_setup()
Julia version 1.0.0 at location C:\PROGRA~1\Julia\JULIA-~1.0\bin will be used.
Tracing dyn.load(libm, DLLpath = .julia$bin_dir) on entry
[1] "ERROR: UndefVarError: Libdl not defined" "Stacktrace:"
[3] " [1] top-level scope at none:0"
attr(,"status")
[1] 1
Error in inDL(x, as.logical(local), as.logical(now), ...) :
character argument expected
In addition: Warning message:
In system2(file.path(.julia$bin_dir, "julia"), shQuote(command), :
running command '"C:\PROGRA~1\Julia\JULIA-~1.0\bin/julia" "-e" "print(Libdl.dlpath(Base.libm_name))"' had status 1
RCall
doesn't seem to work on Julia 1.0.0
(v1.0) pkg> build RCall
Building Conda ───────────→ `C:\Users\VideoLab\.julia\packages\Conda\m7vem\deps\build.log`
Building CodecZlib ───────→ `C:\Users\VideoLab\.julia\packages\CodecZlib\wwgbh\deps\build.log`
Building SpecialFunctions → `C:\Users\VideoLab\.julia\packages\SpecialFunctions\KvXoO\deps\build.log`
Building RCall ───────────→ `C:\Users\VideoLab\.julia\packages\RCall\OBHAc\deps\build.log`
┌ Error: Error building `RCall`:
│ ERROR: LoadError: syntax: try without catch or finally
│ Stacktrace:
│ [1] include at .\boot.jl:317 [inlined]
│ [2] include_relative(::Module, ::String) at .\loading.jl:1038
│ [3] include(::Module, ::String) at .\sysimg.jl:29
│ [4] include(::String) at .\client.jl:388
│ [5] top-level scope at none:0
│ in expression starting at C:\Users\VideoLab\.julia\packages\RCall\OBHAc\deps\build.jl:24
└ @ Pkg.Operations C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.0\Pkg\src\Operations.jl:1068
Julia 0.7___________________________________________________________________________
> trace(dyn.load, quote(print(x)))
Tracing function "dyn.load" in package "base"
[1] "dyn.load"
> julia_setup()
Julia version 0.7.0 at location C:\PROGRA~1\Julia\JULIA-~1.0\bin will be used.
Tracing dyn.load(libm, DLLpath = .julia$bin_dir) on entry
[1] "WARNING: C:\\PROGRA~1\\Julia\\JULIA-~1.0\\bin\\libopenlibm.DLLBase.Libdl is deprecated, run `using Libdl` instead"
[2] " in module Main"
Error in inDL(x, as.logical(local), as.logical(now), ...) :
character argument
RCall
works with Julia 0.7 but it gives some warning messages when installing in Julia
julia> Pkg.build("RCall")
WARNING: Base.Pkg is deprecated, run `using Pkg` instead
in module Main
Building CodecZlib → `C:\Users\VideoLab\.julia\packages\CodecZlib\wwgbh\deps\build.log`
Building Conda ────→ `C:\Users\VideoLab\.julia\packages\Conda\m7vem\deps\build.log`
Building RCall ────→ `C:\Users\VideoLab\.julia\packages\RCall\KPBrH\deps\build.log`
julia> import RCall
[ Info: Precompiling RCall [6f49c342-dc21-5d91-9882-a32aef131414]
┌ Warning: `using A.B` will only be allowed for modules, not single bindings. Use `using A: B` instead
│ caller = ip:0x0
└ @ Core :-1
WARNING: Method definition (::Type{AxisArrays.CategoricalVector{T, A} where A<:AbstractArray{T, 1} where T})(AbstractArray{T, 1}) where {T} in module AxisArrays at C:\Users\VideoLab\.julia\packages\AxisArrays\uZ7JS\src\categoricalvector.jl:43 overwritten at C:\Users\VideoLab\.julia\packages\AxisArrays\uZ7JS\src\categoricalvector.jl:47.
WARNING: Method definition (::Type{AxisArrays.CategoricalVector{T, A} where A<:AbstractArray{T, 1} where T})(AbstractArray{T, 1}) where {T} in module AxisArrays at C:\Users\VideoLab\.julia\packages\AxisArrays\uZ7JS\src\categoricalvector.jl:43 overwritten at C:\Users\VideoLab\.julia\packages\AxisArrays\uZ7JS\src\categoricalvector.jl:47.
WARNING: Method definition (::Type{AxisArrays.CategoricalVector{T, A} where A<:AbstractArray{T, 1} where T})(A<:AbstractArray{T, 1}) where {T, A<:AbstractArray{T, 1}} in module AxisArrays at C:\Users\VideoLab\.julia\packages\AxisArrays\uZ7JS\src\categoricalvector.jl:47 overwritten at C:\Users\VideoLab\.julia\packages\AxisArrays\uZ7JS\src\categoricalvector.jl:43.
WARNING: Method definition (::Type{AxisArrays.CategoricalVector{T, A} where A<:AbstractArray{T, 1} where T})(AbstractArray{T, 1}) where {T} in module AxisArrays at C:\Users\VideoLab\.julia\packages\AxisArrays\uZ7JS\src\categoricalvector.jl:43 overwritten at C:\Users\VideoLab\.julia\packages\AxisArrays\uZ7JS\src\categoricalvector.jl:47.
Error: package or namespace load failed for 'stats' in inDL(x, as.logical(local), as.logical(now), ...):
unable to load shared object 'C:/Program Files/R/R-3.5.1/library/stats/libs/x64/stats.dll':
LoadLibrary failure: The network path was not found.
During startup - Warning message:
package 'stats' in options("defaultPackages") was not found
Julia 0.7 devtools::install_github("Non-Contradiction/JuliaCall")
_________________________