Skip to content

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

@anthonysena

Description

@anthonysena

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions