get_graphab: Download Graphab if not present on the user's machine

View source: R/get_graphab.R

get_graphabR Documentation

Download Graphab if not present on the user's machine

Description

The function checks for the presence of Graphab (.jar) on the user's machine and downloads it if absent. It also checks that users have installed java on their machine.

Usage

get_graphab(res = TRUE, return = FALSE)

Arguments

res

Logical indicating whether a message says if Graphab has been downloaded or not.

return

Logical indicating whether the function returns a 1 or a 0 to indicate if Graphab has been downloaded or not.

Details

If the download does not work, you can create a directory named 'graph4lg_jar' in the directory rappdirs::user_data_dir() and copy Graphab software downloaded from https://thema.univ-fcomte.fr/productions/download.php?name=graphab&version=2.8&username=Graph4lg&institution=R

Value

If res = TRUE, the function displays a message indicating to users what has been done. If return = TRUE, it returns a 0 if Graphab is already on the machine and a 1 if it has been downloaded.

Author(s)

P. Savary

Examples

## Not run: 
get_graphab()

## End(Not run)

graph4lg documentation built on Feb. 16, 2023, 5:43 p.m.