Learn R Programming

RGISTools (version 1.0.2)

setRGISToolsOpt: Change the default value of an RGISTools option

Description

setRGISToolsOpt changes the default value of an `RGISTools' configuration variable. This function can be jointly used with showRGISToolsOpt and getRGISToolsOpt.

Usage

setRGISToolsOpt(opt, value, env = optEnv)

Arguments

opt

a character with the name of the option.

value

the new value of the selected option.

env

the environment where the `RGISTools' option is saved.

Value

this function does not return anything.

Examples

Run this code
# NOT RUN {
# list avaliable options names
showRGISToolsOpt()
# list the URL where the Landsat-7 metadata is located
getRGISToolsOpt("LS7META.dir")
# change the URL where the Landsat-7 metadata is located
setRGISToolsOpt("LS7META.dir", "NewMTDir")
# list the URL where the Landsat-7 metadata is located
getRGISToolsOpt("LS7META.dir")
# }

Run the code above in your browser using DataLab