check-gh-size.RmdThis package checks github repo size as a means of avoiding errors or oversized repos. The package will flag repos over a standard size.
Install package using the code below:
install.packages("remotes")
remotes::install_github("nmfs-ost/ghBackup")
library(ghBackup)dir_size function
The function uses the identified path to check the size of a specified directory and will return the total size.
object = ghBackup::dir_size(path=system.file("extdata", package="ghBackup"))This output will show a table including the total directory size in MB and the full path to directory to be sized.
knitr::kable(object)| Total_Size_MB | path |
|---|---|
| 0.00264 | /home/runner/work/_temp/Library/ghBackup/extdata |