Skip to content

Commit

Permalink
submit to cran
Browse files Browse the repository at this point in the history
  • Loading branch information
ablack3 committed May 1, 2024
1 parent ff2f5a6 commit e08fe8e
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CRAN-SUBMISSION
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Version: 1.3.2
Date: 2024-04-30 15:15:38 UTC
SHA: ff2f5a67bab2fca747ab18411351a0929f8da0fc
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: CDMConnector
Title: Connect to an OMOP Common Data Model
Version: 1.3.1
Version: 1.3.2
Authors@R: c(
person("Adam", "Black", , "black@ohdsi.org", role = c("aut", "cre"),
comment = c(ORCID = "0000-0001-5576-8701")),
Expand Down
8 changes: 8 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# CDMConnector 1.3.2

- fix issue on cran server

# CDMConnector 1.3.1

- bugfix

# CDMConnector 1.3.0

- Incorporate omopgenerics
Expand Down
5 changes: 3 additions & 2 deletions R/dbSource.R
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ dbSource <- function(con, writeSchema) {
insertTable.db_cdm <- function(cdm,
name,
table,
overwrite = TRUE) {
overwrite = TRUE,
temporary = FALSE) {
src <- cdm
checkmate::assertCharacter(name, len = 1, any.missing = FALSE)
con <- attr(src, "dbcon")
Expand All @@ -53,7 +54,7 @@ insertTable.db_cdm <- function(cdm,
if (!inherits(table, "data.frame")) {
table <- table |> dplyr::collect()
}
DBI::dbWriteTable(conn = con, name = fullName, value = table)
DBI::dbWriteTable(conn = con, name = fullName, value = table, temporary = temporary)
x <- dplyr::tbl(src = con, fullName) |>
omopgenerics::newCdmTable(src = src, name = name)
return(x)
Expand Down
2 changes: 1 addition & 1 deletion cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## R CMD check results

This is a new minor release that fixes a breaking change from a dependency.
This is a new patch release that fixes an issue on one of the cran servers.

One NOTE is expected:
Suggests or Enhances not in mainstream repositories: CirceR, Capr
Expand Down

0 comments on commit e08fe8e

Please sign in to comment.