Skip to content
Back to skills

RSQLite

ASecurity

R RSQLite package for SQLite databases. Use for embedded SQLite database connections.

  • 5 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added June 4, 2026
datasqldatabase

Security analysis

A100/100

Scanned June 4, 2026

npx -y skills add LeoLin990405/r-analytics-skill --skill RSQLite --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of RSQLite?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for RSQLite
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/leolin990405-rsqlite/badge)](https://www.skillsdirectory.com/skills/leolin990405-rsqlite)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: RSQLite
description: R RSQLite package for SQLite databases. Use for embedded SQLite database connections.
---

# RSQLite Package

SQLite database interface.

## Connect

```r
library(DBI)
library(RSQLite)

# File database
con <- dbConnect(SQLite(), "database.db")

# In-memory
con <- dbConnect(SQLite(), ":memory:")
```

## Basic Operations

```r
# Write table
dbWriteTable(con, "mtcars", mtcars)

# List tables
dbListTables(con)

# Read table
df <- dbReadTable(con, "mtcars")

# Query
result <- dbGetQuery(con, "SELECT * FROM mtcars WHERE mpg > 20")

# Remove table
dbRemoveTable(con, "mtcars")
```

## Parameterized Queries

```r
# Safe from SQL injection
dbGetQuery(con,
  "SELECT * FROM users WHERE id = ?",
  params = list(user_id)
)

# Named parameters
dbGetQuery(con,
  "SELECT * FROM users WHERE name = :name AND age > :age",
  params = list(name = "John", age = 25)
)
```

## Transactions

```r
dbBegin(con)
tryCatch({
  dbExecute(con, "INSERT INTO ...")
  dbExecute(con, "UPDATE ...")
  dbCommit(con)
}, error = function(e) {
  dbRollback(con)
  stop(e)
})
```

## Disconnect

```r
dbDisconnect(con)
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…