mergePath: Merges classpath specifications

Description Usage Arguments Value Author(s) References See Also Examples

Description

Merges two character vectors of classpaths for use in creating arguments to initialize the Java Virtual Machine within R. This avoids duplicates.

Usage

1
mergePath(path, default, collapse=NULL)

Arguments

path

character vector of path elements

default

a character vector containing the default or previous classpath elements

collapse

a character vector used the value of a the collapse argument in a call to paste. If this is non-null, the resulting vector is converted to a single string. This is usually given as ":" on Unix machines and ";" on Windows machines.

Value

A character vector containing the union of the two arguments. If the collapse argument is specified, the elements of the resulting character vector are concatenated/pasted together to yield a single string.

Author(s)

Duncan Temple Lang, John Chambers

References

http://www.omegahat.org/RSJava

See Also

.JavaInit javaConfig

Examples

1
2
  mergePath("~/Java/MySQL/mm.mysql-2.0.1/mysql.jar",c("$OMEGA_HOME/Jars/antlr.jar","$OMEGA_HOME/Jars/jhall.jar"))
  mergePath("~/Java/MySQL/mm.mysql-2.0.1/mysql.jar",c("$OMEGA_HOME/Jars/antlr.jar","$OMEGA_HOME/Jars/jhall.jar"), collapse=":")

SJava documentation built on Oct. 5, 2016, 4:17 a.m.

Related to mergePath in SJava...