The listed packages are required for some functions of rocker.
RSQLite package for handling of SQLite database connections. It is required for the setupSQLite() function of rocker class.
install.packages("RSQLite")
Setup database
Option 1
<- rocker::newDB() # New database handling object
db #> dctr | New object
$setupSQLite( # Setup SQLite database
dbdbname = ":memory:"
)#> Dctr | Driver load RSQLite
$unloadDriver() # Reset database handling object
db#> dctr | Driver unload RSQLite
Option 2
<- rocker::newDB() # New database handling object
db #> dctr | New object
$setupDriver( # Setup SQLite database
dbdrv = RSQLite::SQLite(),
dbname = ":memory:"
)#> Dctr | Driver load RSQLite
$unloadDriver() # Reset database handling object
db#> dctr | Driver unload RSQLite
RPostgres package for handling of PostgreSQL database connections. It is required for the setupPostgreSQL() function of rocker class.
install.packages("RPostgres")
Setup database
Option 1
<- rocker::newDB() # New database handling object
db #> dctr | New object
$setupPostgreSQL( # Setup PostgreSQL database
dbhost = "127.0.0.1", port = "5432", dbname = "mydb",
user = "postgres", password = "password"
)#> Dctr | Driver load RPostgres
$unloadDriver() # Reset database handling object
db#> dctr | Driver unload RPostgres
Option 2
<- rocker::newDB() # New database handling object
db #> dctr | New object
$setupDriver( # Setup PostgreSQL database
dbdrv = RPostgres::Postgres(),
host = "127.0.0.1", port = "5432", dbname = "mydb",
user = "postgres", password = "password"
)#> Dctr | Driver load RPostgres
$unloadDriver() # Reset database handling object
db#> dctr | Driver unload RPostgres
RMariaDB package for handling of MariaDB and MySQL database connections. It is required for the setupMariaDB() function of rocker class.
install.packages("RMariaDB")
Setup database
Option 1
<- rocker::newDB() # New database handling object
db #> dctr | New object
$setupMariaDB( # Setup MariaDB database
dbhost = "127.0.0.1", port = "3306", dbname = "mydb",
user = "root", password = "password"
)#> Dctr | Driver load RMariaDB
$unloadDriver() # Reset database handling object
db#> dctr | Driver unload RMariaDB
Option 2
<- rocker::newDB() # New database handling object
db #> dctr | New object
$setupDriver( # Setup MariaDB database
dbdrv = RMariaDB::MariaDB(),
host = "127.0.0.1", port = "3306", dbname = "mydb",
user = "root", password = "password"
)#> Dctr | Driver load RMariaDB
$unloadDriver() # Reset database handling object
db#> dctr | Driver unload RMariaDB
The crayon package is required for colored terminal output. If missing terminal output is monochrome.
install.packages("crayon")