I hope it's ok just to post them here. Hoping for clarification or explanation about a couple of things - no urgency for answers.
- Why does
use_testthat()
refuse to work in a non-package project? Surely it's legitimate to usetestthat()
in projects that are not set up to be packages? - Ditto but for
use_mit_licence()
. It seems strange that a decision would be made in the design ofusethis()
that it can only be used to facilitate adding a licence to packages. What am I not understanding? (This was already asked here but I don't think there was a satisfactory answer).
My next question is a different kind - it's more like a feature request. I like having things like {reprex
} loaded automatically in my .Rprofile, and {usethis
} is a good helper for this practice with functions like use_reprex()
.
I understand the difference between workflow packages like this that can legitimately be auto-loaded with a new R session, as opposed to packages 'internal' to a project that should not be auto-loaded for reproducibility reasons. I'm wondering if git packages like {git2r
} or {gert
} would also count as workflow packages that could be auto-loaded - I think they could. And whether it would be good to have a usethis function that facilitated that.
Basically I'm just realising at last that, in principle, I'd be happier interacting with git via typing functions in the R console in RStudio, rather than using the Git pane in RStudio, which I don't like so much (no complaint, just personal preference). And to know that I'd always have those git functions ready to run without having to load the package manually.
Is there any reason why it would not be a good idea to auto-load {git2r
} via my .Rprofile?
I was also wondering about {here
} being auto-loaded via .Rprofile, but I think would not be a good idea as it's something more internal to project scripts and auto-loading would break reproducibility. I just love {here
} and it feels like the kind of thing that should always be there for users, somehow!