# Following examples use raw character constant syntax introduced in R 4.0.
# will produce lints
lint(
text = 'R"--[/blah/file.txt]--"',
linters = absolute_path_linter()
)
# okay
lint(
text = 'R"(./blah)"',
linters = absolute_path_linter()
)
Run the code above in your browser using DataLab