View source: R/sevenzip_checkpath.R
sevenzip_checkpath | R Documentation |
Check for presence of 7zip on your system path
sevenzip_checkpath(cmd = "7z", print.to.console = FALSE)
cmd |
Defaults to |
print.to.console |
Be verbose and print 7-zip options and other information?
Defaults to |
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
.
TRUE
if 7-zip found on your system PATH, FALSE
otherwise
If FALSE
, typically you should:
Navigate to your environment variables, e.g. go to START
Type Edit environment variables
click on PATH
or create a variable called PATH
if none exists
Edit
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)
Other sevenzip functions:
sevenzip_listcont()
,
sevenzip_makecmd()
,
sevenzip_parseinfo()
## Not run: sevenzip_checkpath() # Returns only TRUE of FALSE sevenzip_checkpath(print.to.console = TRUE) # Also view options and other info ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.