RCall.jl


using RCall
using Plots
gr()

xJ =  rand(4) 
@show xJ
@rput xJ
R"x <- 2*xJ"
xR =  convert(Array{Float64}, R"x")
@show xR
plot(xJ)
plot!(xR)