Learn R Programming

rapsimng (version 0.4.6)

install_apsimng: Install ApsimNG Software

Description

This function installs the ApsimNG simulation software on the local system. It handles the download and installation process for the APSIM Next Generation agricultural modeling platform.

Usage

install_apsimng(
  repo = "https://github.com/APSIMInitiative/ApsimX.git",
  branch = "master",
  install_dir = "apsimx_build",
  overwrite = FALSE
)

Value

No return value.

Arguments

repo

Character string specifying the repository of ApsimNG to install.

branch

Character string specifying the branch of the repository to install.

install_dir

Character string specifying the directory where ApsimNG should be installed.

overwrite

Logical. If TRUE, overwrites any existing installation at the specified install directory.

Details

This function downloads and installs ApsimNG from the official repository. It performs version checking, handles dependencies, and configures the installation for use with R. The function requires administrative privileges on Windows systems.

Examples

Run this code
if (FALSE) {
# Install latest version
install_apsimng()
install_apsimng(install_dir = "C:/MyPrograms/ApsimNG")
}

Run the code above in your browser using DataLab