Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dm 0.1.9 - New `vignette("howto-dm-copy", package = "dm")` and `vignette("howto-dm-rows", package = "dm")` discuss updating data on the database. In part derived from `vignette("howto-dm-db", package = "dm")` (#411, @jawond). - New `dm_mutate_tbl()` (#448). - `dm_financial()` falls back to db-edu.pacha.dev if relational.fit.cvut.cz is unavailable (#446, @pachamaltese). - Use testthat 3e (#455).
- Loading branch information
Showing
62 changed files
with
2,061 additions
and
525 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
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
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
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,34 @@ | ||
#' Connection to SQL Financial Database | ||
#' @description Connects to relational.fit.cvut.cz unless the service is | ||
#' unavailable, in which case db-edu.pacha.dev is used as a fallback | ||
#' @return A `MariaDBConnection` object | ||
financial_db_con <- function() { | ||
err_relational <- tryCatch(return(relational_con()), error = identity) | ||
err_dbedu <- tryCatch(return(dbedu_con()), error = identity) | ||
|
||
abort(paste0( | ||
"Can't connect to relational.fit.cvut.cz or db-edu.pacha.dev:\n", | ||
conditionMessage(err_relational), "\n", | ||
conditionMessage(err_dbedu) | ||
)) | ||
} | ||
|
||
relational_con <- function() { | ||
DBI::dbConnect( | ||
RMariaDB::MariaDB(), | ||
username = "guest", | ||
password = "relational", | ||
dbname = "Financial_ijs", | ||
host = "relational.fit.cvut.cz" | ||
) | ||
} | ||
|
||
dbedu_con <- function() { | ||
DBI::dbConnect( | ||
RMariaDB::MariaDB(), | ||
username = "student", | ||
password = "tx5mvyRQqD", | ||
dbname = "loan_application", | ||
host = "db-edu.pacha.dev" | ||
) | ||
} |
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
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
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
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,17 +1,18 @@ | ||
dm 0.1.7 | ||
dm 0.1.9 | ||
|
||
## Cran Repository Policy | ||
|
||
- [x] Reviewed CRP last edited 2020-07-11. | ||
- [x] Reviewed CRP last edited 2020-10-29. | ||
|
||
## R CMD check results | ||
|
||
- [x] Checked locally, R 4.0.2 | ||
- [x] Checked on CI system, R 4.0.2 | ||
- [x] Checked locally, R 4.0.3 | ||
- [x] Checked on CI system, R 4.0.3 | ||
- [x] Checked on win-builder, R devel | ||
|
||
Check the boxes above after successful execution and remove this line. Then run `fledge::release()`. | ||
|
||
## Current CRAN check results | ||
|
||
- [x] Checked on 2020-09-01, problems found: https://cran.r-project.org/web/checks/check_results_dm.html | ||
- [x] NOTE: r-patched-solaris-x86: RPostgres not available | ||
- [x] ERROR: (on various platforms): Now connecting with a timeout to Internet data source | ||
- [x] Checked on 2020-11-18, problems found: https://cran.r-project.org/web/checks/check_results_dm.html | ||
- [x] NOTE: r-patched-solaris-x86: RPostgres is not available on Solaris. |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.