# will produce lints
lint(
text = "do.call(cbind.data.frame, x)",
linters = list2df_linter()
)
lint(
text = "do.call('cbind.data.frame', x)",
linters = list2df_linter()
)
lint(
text = "do.call(cbind.data.frame, list(a = 1, b = 1:10))",
linters = list2df_linter()
)
# okay
lint(
text = "list2df(x)",
linters = list2df_linter()
)
lint(
text = "data.frame(list(a = 1, b = 1:10))",
linters = list2df_linter()
)
Run the code above in your browser using DataLab