This function does the setup for the package convexjlr. Firstly it will try to establish the connect to Julia via the XRJulia interface, or try to embed julia in R through JuliaCall. Secondly it will check for the Julia packages Convex and SCS, if the packages are not found, it tries to install them into Julia. Finally, it will try to load the Julia packages and do the necessary initial setup.

convex_setup(backend = c("JuliaCall"), JULIA_HOME = NULL)

Arguments

backend

the backend to use, only JuliaCall is supported currently.

JULIA_HOME

the path to julia binary, if not set, convexjlr will try to use the julia in path.

Examples

# NOT RUN {
convex_setup()
# }