R"b <- $(collect(flatten(a)))"
设置:
using Base.Iterators
a = [1:6, 9, 12, 15]
测试
julia> R"b <- $(collect(flatten(a)))"
RObject{IntSxp}
[1] 1 2 3 4 5 6 9 12 15
另请注意,儒略等价于c(1:6, 9, 12, 15)
:
julia> [1:6..., 9, 12, 15]
9-element Array{Int64,1}:
1
2
3
4
5
6
9
12
15