-
- On macOS, if you have Homebrew installed, run
brew install sqlite
- On macOS, if you have Homebrew installed, run
-
Install R packages
adbcdrivermanager,arrow, andtibble:install.packages(c("adbcdrivermanager", "arrow", "tibble"))
-
Install the SQLite ADBC driver:
dbc install sqlite
-
Customize the R script
main.Ras needed- Change the connection arguments in
adbc_database_init()- Set
urito the location of the SQLite database file you want to query, or keep it set togames.sqliteto use the database file included with this example
- Set
- If you changed the database file, also change the SQL SELECT statement in
read_adbc()
- Change the connection arguments in
-
Run the R script:
Rscript main.R