How to remove quotes folowing variable interpolation in Run() command?

Just don’t join them yourself:

julia> files = ["f1.txt", "f2.txt"]
2-element Array{String,1}:
 "f1.txt"
 "f2.txt"

julia> cmd = `R --vanilla --args $files`
`R --vanilla --args f1.txt f2.txt`

See the docs here for more on how interpolating works with command objects.

1 Like