View source: R/MODIStsp_install_launcher.R
install_MODIStsp_launcher | R Documentation |
Function which allows to use MODIStsp in batch mode by creating links
install_MODIStsp_launcher(
bin_dir = NA,
rscript_dir = NA,
desktop_dir = NA,
desktop_shortcut = TRUE,
sudo = FALSE
)
bin_dir |
|
rscript_dir |
|
desktop_dir |
|
desktop_shortcut |
|
sudo |
(Linux only) |
MODIStsp can be used also as a stand-alone tool (i.e., without opening RStudio or R-GUI) by launching a bash/batch script, which is stored in the installation folder (/ExtData/Launcher) To allow to easily find it, this function creates a desktop entry and a symbolic link to the bash script (on Linux) or a link in the Start Menu to the batch script and a shortcut on the desktop (on Windows). Note that, if the packages MODIStsp is installed in a version-dependent directory (as the default one is), this function should be re-executed after an R upgrade, otherwise the links would continue to point to the old package version!
The function is called for its side effects.
License: GPL 3.0
Luigi Ranghetti, phD (2015)
# Linux: common installation (script in /usr/bin,
# desktop entry in /usr/share/applications)
# (requires administrator permissions)
## Not run:
# the administrator password is asked interactively
install_MODIStsp_launcher(sudo = TRUE)
## End(Not run)
# Linux: installation in a directory which does not require administrator
# permissions
## Not run:
install_MODIStsp_launcher(bin_dir = "~/bin", desktop_dir = "~/Desktop")
## End(Not run)
# Windows: common installation
# (script in the Start Menu and shortcut on the desktop)
## Not run:
install_MODIStsp_launcher()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.