-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
change handling of dataverse version issue (#72)
instead of a warning in .onLoad, issue a startup message if the package version is too low, and don't throw an error unless download_file() is actually reached
- Loading branch information
Showing
4 changed files
with
28 additions
and
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Stuff that touches dataverse | ||
|
||
check_dataverse_version <- function() { | ||
# Check that the installed dataverse version has the bug fix references in | ||
# #51, #58, and lastly #72 | ||
if (utils::packageVersion("dataverse") < "0.2.1.9001") { | ||
msg <- paste0(c( | ||
strwrap("There is bug in the dataverse R package prior to version 0.2.1.9001 that breaks file downloading. Please check on CRAN if a newer version is available or install the development version from GitHub using:"), | ||
" remotes::install_github(\"IQSS/dataverse-client-r\")" | ||
), collapse = "\n") | ||
return(msg) | ||
} | ||
invisible(TRUE) | ||
} |
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
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