auk_set_awk_path: Set a custom path to AWK executable

View source: R/auk-set-awk-path.r

auk_set_awk_pathR Documentation

Set a custom path to AWK executable

Description

If AWK has been installed in a non-standard location, the environment variable AWK_PATH must be set to specify the location of the executable. Use this function to set AWK_PATH in your .Renviron file. Most users should NOT set AWK_PATH, only do so if you have installed AWK in non-standard location and auk cannot find it. This function first looks for for an .Renviron location defined by R_ENVIRON_USER, then defaults to ~/.Renviron.

Usage

auk_set_awk_path(path, overwrite = FALSE)

Arguments

path

character; path to the AWK executable on your system, e.g. "C:/cygwin64/bin/gawk.exe" or "/usr/bin/awk".

overwrite

logical; should the existing AWK_PATH be overwritten if it has already been set in .Renviron.

Value

Edits .Renviron, sets AWK_PATH for the current session, then returns the EBD path invisibly.

See Also

Other paths: auk_get_awk_path(), auk_get_ebd_path(), auk_set_ebd_path()

Examples

## Not run: 
auk_set_awk_path("/usr/bin/awk")

## End(Not run)

auk documentation built on Nov. 14, 2023, 5:10 p.m.