if (FALSE) {
# Make sure packages are installed
installPackage("stsim")
# Create or open a SsimLibrary using the default Session
myLibrary <- ssimLibrary(name = file.path(tempdir(), "mylib"))
# Create SsimLibrary using a specific Session
mySession <- session()
myLibrary <- ssimLibrary(name = file.path(tempdir(), "mylib"),
session = mySession)
# Retrieve SsimLibrary properties
session(myLibrary)
# Create SsimLibrary from template
installPackage("helloworldSpatial")
mySession <- session()
myLibrary <- ssimLibrary(name = file.path(tempdir(), "mylib"),
session = mySession,
forceUpdate = TRUE,
packages = "helloworldSpatial",
overwrite = TRUE)
}
Run the code above in your browser using DataLab