Skip to contents

Display sql with comments This function returns the content of a specified SQL file, including any comments within the file. The function should used within a sql code chunk (sql ) in R markdown within single back tick. [Stable]

Usage

display_sql_with_comments(folder, file)

Arguments

folder

A character string specifying the folder within inst/sql where the SQL file is located. Must be within quotes.

file

A character string specifying the name of the SQL file to display. Must be within quotes.

Value

A character string containing the content of the SQL file