# will produce lints
lint(
text = "download.file(x = my_url)",
linters = download_file_linter()
)
lint(
text = "download.file(x = my_url, mode = 'w')",
linters = download_file_linter()
)
lint(
text = "download.file(x = my_url, method = 'curl', mode = 'wb')",
linters = download_file_linter()
)
# okay
lint(
text = "download.file(x = my_url, mode = 'wb')",
linters = download_file_linter()
)
lint(
text = "download.file(x = my_url, method = 'curl')",
linters = download_file_linter()
)
Run the code above in your browser using DataLab