## Return current options:
pls.options()
pls.options("plsralg")
pls.options(c("plsralg", "pcralg"))
## Set options:
pls.options(plsralg = "simpls", mvralg = "simpls")
pls.options(list(plsralg = "simpls", mvralg = "simpls")) # Equivalent
pls.options()
## Restore `factory settings':
pls.options(list(mvralg = "kernelpls", plsralg = "kernelpls", cpplsalg = "cppls",
pcralg = "svdpc", parallel = NULL,
w.tol = .Machine$double.eps, X.tol = 10^-12))
pls.options()
Run the code above in your browser using DataLab