Learn R Programming

spanishoddata (version 0.2.0)

spod_read_sql: Load an SQL query, glue it, dplyr::sql it

Description

Load an SQL query from a specified file in package installation directory, glue::collapse it, glue::glue it in case of any variables that need to be replaced, and dplyr::sql it for additional safety.

Usage

spod_read_sql(sql_file_name)

Value

Text of the SQL query of class sql/character.

Arguments

sql_file_name

The name of the SQL file to load from the package installation directory.