Description Usage Arguments Details Value References Examples
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.
1 | install_megadepth(version = "latest", force = FALSE)
|
version |
A |
force |
A |
This function tries to install Megadepth to 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.
1 2 | ## Install megadepth
install_megadepth()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.