-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure individual version matches what was compiled against.
- Loading branch information
Showing
4 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
.onLoad <- function(libname, pkgname){ | ||
headers_version <- individual_headers_version() | ||
package_version <- as.character(packageVersion("individual")) | ||
if (!identical(package_version, headers_version)) { | ||
warning(sprintf(paste( | ||
"malariasimulation was compiled against version '%s' of the individual,", | ||
"but version '%s' is currently loaded. This is likely to cause,", | ||
"malariasimulation to misbehave. You should re-install", | ||
"malariasimulation. If using devtools, run `devtools::clean_dll` and", | ||
"then load malariasimulation again." | ||
), headers_version, package_version)) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters