Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a more informative error when the checksum fails onLoad of FeatureExtraction #291

Open
anthonysena opened this issue Feb 25, 2025 · 0 comments

Comments

@anthonysena
Copy link
Collaborator

When the Java library for FeatureExtraction is updated, you must update the inst/csv/jarChecksum.txt which is done through:

# Store JAR checksum --------------------------------------------------------------
checksum <- rJava::J("org.ohdsi.featureExtraction.JarChecksum", "computeJarChecksum")
write(checksum, file.path("inst", "csv", "jarChecksum.txt"))

If you do not update the inst/csv/jarChecksum.txt, you get the following error:

if (computedChecksum != "" && (storedChecksum != computedChecksum)) {
warning("Java library version does not match R package version! Please try reinstalling the FeatureExtraction package.
Make sure to close all instances of R, and open only one instance before reinstalling. Also make sure your
R workspace is not reloaded on startup. Delete your .Rdata file if necessary")
}

It would be useful to update this description to include some information for Java developers to indicate that the origin of this error lies with a mismatch between the inst/csv/jarChecksum.txt and current state of the FE Java library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant