This function will use the maven dependency get funtionality to download a (java) dependency.

download_dependency(dep, group, version, mvn = find_mvn(), java_home,
  transitive = TRUE)

Arguments

dep

Character. The dependency name. This could be the entire name (e.g., group:dependency:version) in which case the other inputs may be omitted. Otherwise it can be just the dependency name (i.e., the part in the middle of the above example).

group

Character. The maven artifact group name.

version

Character. The desired version of the dependency.

mvn

Character. The path the the maven installation.

java_home

Character. Path to java. If not provided the standard install paths (platform dependent) will be checked.

transitive

Logical. If TRUE, download transitively, retrieving the specified artifact and all of its dependencies.