View source: R/chadwick_installation.R
chadwick_path | R Documentation |
Utility functions to help ensure that Chadwick is set up correctly.
The easiest way for the Chadwick CLI
tools to work on *nix systems is to
set the LD_LIBRARY_PATH
environment variable. Unfortunately this environment
variable is not set by default during the Chadwick installation.
chadwick_ld_library_path()
checks to find the Chadwick shared libraries, and then
set the LD_LIBRARY_PATH
environment variable.
If chadwick_ld_library_path()
returns TRUE
, the cwevent
command line program
that retrosheet_data
depends on should work.
The other functions documented here are mostly for internal use.
chadwick_path()
chadwick_is_installed()
chadwick_find_lib()
chadwick_set_ld_library_path()
chadwick_ld_library_path()
If Chadwick is not installed NULL
. If Chadwick is installed, the path to the cwevent
binary.
TRUE
or FALSE
Path to the Chadwick shared library.
retrosheet_data()
chadwick_path()
chadwick_is_installed()
chadwick_find_lib()
## Not run:
if (chadwick_ld_library_path()) {
retrosheet_data(tempdir())
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.