Skip to content

Commit

Permalink
bump Roxygen2
Browse files Browse the repository at this point in the history
kongdd committed Jan 27, 2025
1 parent 716ef67 commit 9929791
Showing 4 changed files with 29 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -27,5 +27,5 @@ Suggests:
Config/testthat/edition: 3
Encoding: UTF-8
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.2.3
RoxygenNote: 7.3.2
VignetteBuilder: knitr
8 changes: 7 additions & 1 deletion R/R6_dbase.R
Original file line number Diff line number Diff line change
@@ -85,6 +85,12 @@ dbase <- R6Class("dbase", list(
# duckdb::duckdb_shutdown(duckdb())
},

#' list of table names
#' @return character vector
list_tables = function() {
DBI::dbListTables(self$con)
},

#' Read Tables
#' @return list of `dataframe`
read_tables = function(tables = NULL) {
@@ -123,7 +129,7 @@ dbase <- R6Class("dbase", list(
.name <- deparse(substitute(value))
name %<>% `%||%`(.name)
if (append) overwrite <- FALSE

# TODO: show progress of dbWriteTable
dbWriteTable(self$con, name, value, overwrite = overwrite, append = append, ...)
},

8 changes: 7 additions & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
@@ -43,7 +43,13 @@ remotes::install_github("rpkgs/tidydb2")

## Example

This is a basic example which shows you how to solve a common problem:
```r
## 查找邻近站点的数据
library(tidymet)
st <- st_met2176_hourly
p <- c(116.4, 39.9)
find_near(p, st)
```

```{r}
library(tidydb2)
14 changes: 14 additions & 0 deletions man/dbase.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9929791

Please sign in to comment.