Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/the-y-company/many
Create R packages from many directories
https://github.com/the-y-company/many
Last synced: 3 months ago
JSON representation
Create R packages from many directories
- Host: GitHub
- URL: https://github.com/the-y-company/many
- Owner: the-y-company
- License: gpl-3.0
- Created: 2023-11-05T16:25:31.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-03-30T18:14:34.000Z (7 months ago)
- Last Synced: 2024-03-30T19:26:40.342Z (7 months ago)
- Language: R
- Homepage: https://many.the-y-company.com
- Size: 4.05 MB
- Stars: 13
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-shiny-extensions - many - Use multiple directories to build R packages. (Developer Tools / Modularization)
- jimsghstars - the-y-company/many - Create R packages from many directories (R)
README
Use _many_ directories to build R packages.
This allows using many folders to write R packages,
letting you structure the project more or less how you
but benefiting from the R toolchain around R packages
(testing, documentation, etc.).## How it works
The function `bundle` looks for
`.R` files in the `srcpkg` and simply copies
them to the `/R` directory whilst tracking
changes in the `.many` file.
If that process fails you can run `reset` to clear
that file the subsequent `bundle` run will force copy all files.- The `srcpkg` can contain multiple nested directories,
for an example look at the source code of this package.
Everything else remains the same, e.g.: use of `inst`, etc.
- Set the `MANY_VERBOSE` environment variable to `FALSE` if
you want to switch off all messages.
- Run `tidy()` to clean up old files but you should not have
to do this, it's handled in `bundle()`.
- If you run into any issue you can always reset the tracking by
running `many::reset()` (you will NOT lose any progress).## Previous work
To our knowledghe, [rfold](https://CRAN.R-project.org/package=rfold) is the only other package, hosted on CRAN,
that proposed the idea of using multiple directories to build R packages, but with a different code implementation.