Getting Chadwick to work on Linux (and probably Mac) requires setting the LD_LIBRARY_PATH environment variable. This process is not well-documented to begin with, and then the use of system() to call cwevent depends on the environment variable being set correctly, which it's not by default. Without this variable set, retrosheet_data() doesn't work.
I wrote these functions to help me debug my own installation, and I think they would be helpful for others. Adding a call to chadwick_ld_library_path()insideretrosheet_data() would hopefully make this work seamlessly for more people.
I'd be happy to work this up into a formal pull request if you'll consider it.
Getting Chadwick to work on Linux (and probably Mac) requires setting the
LD_LIBRARY_PATH
environment variable. This process is not well-documented to begin with, and then the use ofsystem()
to callcwevent
depends on the environment variable being set correctly, which it's not by default. Without this variable set,retrosheet_data()
doesn't work.I wrote these functions to help me debug my own installation, and I think they would be helpful for others. Adding a call to
chadwick_ld_library_path()
insideretrosheet_data()
would hopefully make this work seamlessly for more people.I'd be happy to work this up into a formal pull request if you'll consider it.