https://github.com/special-uor/dabr
dabr: Database Management with R
https://github.com/special-uor/dabr
Last synced: 3 months ago
JSON representation
dabr: Database Management with R
- Host: GitHub
- URL: https://github.com/special-uor/dabr
- Owner: special-uor
- License: gpl-3.0
- Created: 2020-10-23T08:54:40.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-10-16T12:50:29.000Z (over 2 years ago)
- Last Synced: 2025-01-18T12:19:49.908Z (3 months ago)
- Language: R
- Homepage: https://special-uor.github.io/dabr/
- Size: 386 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.Rmd
- License: LICENSE.md
Awesome Lists containing this project
- jimsghstars - special-uor/dabr - dabr: Database Management with R (R)
README
---
output: github_document
---```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# dabr: Database Management with R`r badger::badge_cran_release("dabr", "black")`
`r badger::badge_devel("special-uor/dabr", "yellow")`
`r badger::badge_github_actions("special-uor/dabr")`The goal of dabr is to provide functions to manage databases: select, update, insert,
and delete records, list tables, backup tables as CSV files, and import
CSV files as tables.## Installation
You can install the released version of dabr from [CRAN](https://cran.r-project.org/package=dabr) with:
``` r
install.packages("dabr")
```And the development version from [GitHub](https://github.com/special-uor/dabr) with:
``` r
# install.packages("remotes")
remotes::install_github("special-uor/dabr", "dev")
```
## ExampleConnecting to the Reading Palaeofire Database (RPD), locally installed under the name `RPD-latest`:
```{r}
conn <- dabr::open_conn_mysql("RPD-latest",
password = rstudioapi::askForPassword(prompt = "Password"))
```Explore the database structure by listing the tables and their attributes:
```{r}
dabr::list_tables(conn)
```__ALWAYS!__ close your connection to the database (when you are done):
```{r}
dabr::close_conn(conn)
```