njtierney / codelens

Assist exploring and improving large code bases.
Other
1 stars 0 forks source link

write_packages should check if packages.R already exists #16

Open dhduncan opened 4 months ago

dhduncan commented 4 months ago

Doesn't stop it working but will result in duplicated library calls can move the sort and unique calls down as per a solution to #11?

njtierney commented 4 months ago

Ah sorry didn't see that you already wrote an issue! Here are some of my further thoughts.

using the yesno package to confirm with the user

See usethis examples, e.g., use_readme_rm() will give a message asking the user if they want to overwrite.

The source code for use_readme might also be a good place to look to see the nice cli formatting that they use