Learn R Programming

sits (version 0.10.0)

sits_db_connect: Creates a connection to an RSQLite database

Description

This functions creates a connection to an RSQLite database to be able to store the data and metadata tables associated to time series and data cubes associated to the "sits" suite of packages.

Usage

sits_db_connect(name = NULL)

Arguments

name

Name of the database (either a file or memory if empty)

Value

A connection to an RSQLite database

Examples

Run this code
# NOT RUN {
# name of file to store the RSQLite database
db_file <- paste0(Sys.getenv("HOME"), "/sits.sql")
# create RSQLite connection
conn <- sits_db_connect(db_file)
# clean up
unlink(db_file)
# }

Run the code above in your browser using DataLab