Learn R Programming

J4R (version 1.0.8)

addToClassPath: Dynamically adds a path or a jar file to the classpath.

Description

This function makes it possible to add a directory or a JAR file to the class path. If the packageName parameter is null then the urlString parameter must be the complete path to the directory. Otherwise, it can be the name of the JAR file and the function will find the path through the package name. A non null packageName parameter is typically used in packages that rely on J4R.

Usage

addToClassPath(path, packageName = NULL)

Arguments

path

a character representing the path to the directory or the JAR file if the packageName parameter is null. Otherwise, it can just be the name of the JAR file. This path is normalized so that expressions like myJar.jar or ./extensions/myJar.jar will be processed.

packageName

a character representing the package.