Open c-martinez opened 6 months ago
usethis is really very useful and already does a lot of templetization for you, so you could technically write a small R script to which you pass some parameters, like the name of the package etc. and then just rune the usethis library to init most of the things :)
@maltelueken What do you think about this?
I agree with the above! usethis
is also what I would recommend to those who want to start a new R package. Having such a script (maybe publish it as a GitHub Gist?) would be a nice idea.
During the research software templates session in RSECon24, there were some comments about "other tools used in R instead of templates":
Are these equivalent? competitors? I take it our preferred / recommended way is to use usethis
?
Dear @c-martinez, here my answer:
devtools
is essentially equivalent to usethis
(actually, usethis
is kind of part of devtools
).rrtools
. It is not an official R package (yet).So yes, usethis
shall still be our focus.
The Python chapter has a reference to our Python Template, as a way to start your project with the good practices we encourage everyone to use (license, testing, citation information, etc).
Talking to @PabRod, apparently in R-land, it is more common to use the usethis library. Instead of creating a template for R, it would make sense to have a few lines of R that serve the same purpose (start your project with good practices we encourage).
I guess it would look something like this:
Would more experienced R people be able to give their opinion?