Skip to contents

Format text from SQL file into proper SQL query

Usage

to_sql_query(filepath)

Arguments

filepath

Path to SQL file

Value

SQL query string

Examples


# Path to the SQL file
filepath <- system.file("extdata", "my_sql_file.sql", package = "my_package")

# Call the function to read the SQL file and format it into a query
to_sql_query(filepath)
#> Warning: file("") only supports open = "w+" and open = "w+b": using the former
#> [1] ""