Skip to contents

This function appends new strains to the 'strain' table in the database.

Usage

append_strains_to_db(user_file, database = Sys.getenv("SDB_PATH"))

Arguments

user_file

A data frame containing a column named 'strain'.

database

The path to the SQLite database.

Value

A boolean indicating success (TRUE) or failure (FALSE).

Examples

# Assuming you have a data frame named user_data with a strain column and a valid SQLite database at "/path/to/db"
result <- append_strains_to_db(user_data, "/path/to/db")
#> Error: Could not connect to database:
#> unable to open database file