-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update NEWS and package startup message #113
- Loading branch information
Showing
2 changed files
with
22 additions
and
18 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 |
---|---|---|
@@ -1,30 +1,22 @@ | ||
packageStartupMessage( | ||
"Welcome to redcapAPI. Please Note:\n", | ||
" - 'exportBundle' has been made redundant. See ?redcapConnection for details about caching project data.") | ||
"A future release of redcapAPI 3.0.0 will introduce several breaking changes \n", | ||
"* The `exportRecords` function interface will be replaced. Please switch your processes to `exportRecordsTyped`\n", | ||
"* The `exportReports` function interface will be replaced. Please switch your processes to `exportReportsTyped`\n", | ||
"* The `importRecords` function interface will be replaced to utilize `castForImport` to prepare data for import.\n ", | ||
"* The `redcapFactor` class is being discontinued with all its supporting methods (including `redcapFactorFlip`.\n", | ||
"* The `exportProjectInfo` and `exportBundle` functions are being discontinued. Their functionality is replaced by caching values on the connection object.\n", | ||
"See NEWS for more details." | ||
) | ||
|
||
.onLoad <- function(libname,pkgname) | ||
{ | ||
options(redcap_api_url = character(0), | ||
redcap_error_handling = "null", | ||
redcap_bundle = | ||
structure( | ||
list( | ||
version = NULL, | ||
meta_data = NULL, | ||
users = NULL, | ||
instruments = NULL, | ||
events = NULL, | ||
arms = NULL, | ||
mappings = NULL | ||
), | ||
class = c("redcapBundle", "redcapProject", "list") | ||
) | ||
redcap_error_handling = "null" | ||
) | ||
} | ||
|
||
.onUnload <- function(libPath) | ||
{ | ||
options(redcap_api_url = NULL, | ||
redcap_error_handling = NULL, | ||
redcap_bundle = NULL) | ||
redcap_error_handling = NULL) | ||
} |