install_megadepth | R Documentation |
Download the appropriate Megadepth executable for your platform from Github
and try to copy it to a system directory so megadepth can run the
megadepth
command.
install_megadepth(version = "latest", force = FALSE)
version |
A |
force |
A |
If this function is run in an non-interactive session such as R CMD
Check
, it will install Megadepth to tempdir()
. If this function is
run interactively, the user will be prompted to agree to allow Megadepth to
be installed at Sys.getenv('APPDATA')
on Windows,
‘~/Library/Application Support’ on macOS, and ‘~/bin/’ on other
platforms (such as Linux). If these directories are not writable, the package
directory ‘Megadepth’ of megadepth will be used. If it still
fails, you have to install Megadepth by yourself and make sure it can be
found via the environment variable PATH
.
If you want to install Megadepth to a custom path, you can set the global
option megadepth.dir
to a directory to store the Megadepth executable
before you call install_megadepth()
, e.g.,
options(megadepth.hugo.dir = '~/Downloads/Megadepth_1.0.4/')
.
This may be useful for you to use a specific
version of Megadepth for a specific project. You can set this option per
project, similar to how blogdown.hugo.dir
is used for specifying
the directory for Hugo in the blogdown package..
See Section
1.4 Global options for details, or store a copy of Megadepth on a USB Flash
drive along with your project code.
Returns NULL
. The main use is to install Megadepth.
This function is based on blogdown::install_hugo() which is available from https://github.com/rstudio/blogdown/blob/master/R/install.R.
## Install megadepth
install_megadepth()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.