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=":")


Search within the SJava package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.