Skip to content

Commit 5157e02

Browse files
committed
updated version 1.2.2 to address lack of windows support for INSTALL MOTHERDUCK
1 parent 7c59956 commit 5157e02

File tree

9 files changed

+21
-12
lines changed

9 files changed

+21
-12
lines changed

CRAN-SUBMISSION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
Version: 1.2.1
2-
Date: 2025-11-23 16:28:52 UTC
3-
SHA: edef01ca39e894791a4abf4e6ae09dfe2da0b7c1
2+
Date: 2025-11-23 17:58:38 UTC
3+
SHA: 7c59956a1f7aa127253a79bc157cf78168bca6c0

DESCRIPTION

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: contoso
22
Type: Package
33
Title: Dataset of the 'Contoso' Company
4-
Version: 1.2.1
4+
Version: 1.2.2
55
Authors@R: c(
66
person(
77
"Alejandro", "Hagan",
@@ -22,7 +22,9 @@ Imports:
2222
DBI,
2323
dplyr,
2424
cli,
25-
duckdb (>= 1.4.0)
25+
duckdb (>= 1.4.0),
26+
assertthat,
27+
cli
2628
Suggests:
2729
testthat (>= 3.0.0),
2830
dbplyr

NEWS.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# contoso 1.2.2
2+
* create_contoso_duckdb() will not work if you are using windows due to lack of support from motherduck
3+
* [see here for more information](https://motherduck.com/docs/integrations/language-apis-and-drivers/r/#considerations-and-limitations)
4+
15
# contoso 1.2.1
26
* fixed create_contoso_duckdb() due to error created by table name changed
37
* updated tests

R/database.R

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ create_contoso_duckdb <- function(db_dir= c("in_memory"),size="100K"){
4040

4141
db_dir <- match.arg(db_dir, choices = c("temp", "in_memory"),several.ok = FALSE)
4242

43+
# validation of windows to fail gracefully if operating systems is windows
44+
system_name <- Sys.info()[["sysname"]]
45+
46+
assertthat::assert_that(tolower(system_name)!="windows",msg =cli::cli_abort("Motherduck exention is not currently avalable in windows. See {.url https://motherduck.com/docs/integrations/language-apis-and-drivers/r/#considerations-and-limitations} for more information"))
47+
48+
4349
# size <- "1M"
4450
stopifnot(is.character(size))
4551
size <- tolower(size)

cran-comments.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
## R CMD check results
22

3-
0 errors ✔ | 0 warnings ✔ | 1 note ✖
4-
* Days since last update: 1
5-
6-
* fixed error in function caused by table name change
3+
* added error validation to safely fail if user is using windows for create_contoso_database()

docs/LICENSE.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/index.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/pkgdown.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ pandoc: 3.6.3
22
pkgdown: 2.2.0
33
pkgdown_sha: ~
44
articles: {}
5-
last_built: 2025-11-23T16:27Z
5+
last_built: 2025-11-26T18:19Z
66
urls:
77
reference: https://usrbinr.github.io/contoso/reference
88
article: https://usrbinr.github.io/contoso/articles

docs/search.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)