This function simply downloads the wdltool JAR file and puts it in the destfile location. The JAR file is picked up from https://github.com/broadinstitute/wdltool/releases.

getWdltoolJar(wdltool_version, destfile = "wdltool.jar")

Arguments

wdltool_version

string representing the version number

destfile

string The full path to the wdltool jar file location on the local system

Value

destfile location [invisibly]

Details

A side-effect is that the environment variable, WDLTOOL_JAR will be set to the path to the downloaded jarfile.

See also

See lots of details at https://github.com/broadinstitute/wdltool.

Examples

version = '0.8' tmpfile = file.path(tempdir(),'wdltool.jar') fp = getWdltoolJar(wdltool_version = version, destfile = tmpfile)
#> WDLTOOL_JAR environment variable set to #> /var/folders/21/b_rp6qyj1_b1j5cp8qby0tnr0000gn/T//RtmpyDOzOn/wdltool.jar
fp
#> [1] "/var/folders/21/b_rp6qyj1_b1j5cp8qby0tnr0000gn/T//RtmpyDOzOn/wdltool.jar"
unlink(fp)