sevenzip_checkpath: WINDOWS ONLY - Check if 7zip is on your system path

View source: R/sevenzip_checkpath.R

sevenzip_checkpathR Documentation

WINDOWS ONLY - Check if 7zip is on your system path

Description

Check for presence of 7zip on your system path

Usage

sevenzip_checkpath(cmd = "7z", print.to.console = FALSE)

Arguments

cmd

Defaults to 7z

print.to.console

Be verbose and print 7-zip options and other information? Defaults to FALSE

Details

This is primarily a helper function for other 7zip functions, but can be a helpful shortcut to check if 7-zip is in your PATH environment variable, and/or to review the available commands/flags/options for 7-zip, if called with print.to.console=TRUE.

Value

TRUE if 7-zip found on your system PATH, FALSE otherwise

Note

If FALSE, typically you should:

  1. Navigate to your environment variables, e.g. go to START

  2. Type Edit environment variables

  3. click on PATH or create a variable called PATH if none exists

  4. Edit

  5. Add the following: C:\Program Files\7-zip, making sure that if you have other variables, you separate each with a semicolon (and no spaces in-between)

See Also

Other sevenzip functions: sevenzip_listcont(), sevenzip_makecmd(), sevenzip_parseinfo()

Examples

## Not run: 
sevenzip_checkpath() # Returns only TRUE of FALSE
sevenzip_checkpath(print.to.console = TRUE) # Also view options and other info

## End(Not run)

slin30/wzMisc documentation built on Jan. 27, 2023, 1 a.m.