is_beast2_pkg_installed: Is a BEAST2 package installed?

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/is_beast2_pkg_installed.R

Description

Checks if a BEAST2 package is installed.

Usage

1
2
3
4
5
is_beast2_pkg_installed(
  name,
  beast2_folder = beastier::get_default_beast2_folder(),
  has_internet = curl::has_internet()
)

Arguments

name

the package's name

beast2_folder

the folder where the BEAST2 is installed. Note that this is not the folder where the BEAST2 executable is installed: the BEAST2 executable is in a subfolder. Use get_default_beast2_folder to get the default BEAST2 folder. Use get_default_beast2_bin_path to get the full path to the default BEAST2 executable. Use get_default_beast2_jar_path to get the full path to the default BEAST2 jar file.

has_internet

boolean to indicate if the user has access to the internet. By default, this value equals the result of curl::has_internet

Details

To be able to check this, an internet connection is needed. Without an internet connection, NULL is returned.

Value

Author(s)

Richèl J.C. Bilderbeek

See Also

Use is_beast2_ns_pkg_installed to see if the NS package is installed without an internet connection

Examples

1
2
3
4
## Not run: 
  is_beast2_pkg_installed("Beasy")

## End(Not run)

mauricer documentation built on Sept. 8, 2021, 5:06 p.m.