Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hrbrmstr/freebase
👃🏽A 'usethis'-like Package for Base R Pseudo-equivalents of 'tidyverse' Code
https://github.com/hrbrmstr/freebase
base-r r rstats usethis
Last synced: about 2 months ago
JSON representation
👃🏽A 'usethis'-like Package for Base R Pseudo-equivalents of 'tidyverse' Code
- Host: GitHub
- URL: https://github.com/hrbrmstr/freebase
- Owner: hrbrmstr
- License: other
- Created: 2018-05-28T17:06:18.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-07-17T23:45:05.000Z (over 2 years ago)
- Last Synced: 2024-10-12T21:24:02.491Z (2 months ago)
- Topics: base-r, r, rstats, usethis
- Language: R
- Homepage: https://hrbrmstr.github.io/freebase/index.html
- Size: 62.5 KB
- Stars: 83
- Watchers: 4
- Forks: 7
- Open Issues: 9
-
Metadata Files:
- Readme: README.Rmd
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - hrbrmstr/freebase - 👃🏽A 'usethis'-like Package for Base R Pseudo-equivalents of 'tidyverse' Code (R)
README
---
output: rmarkdown::github_document
---# freebase
A 'usethis'-esque Package for Base R Versions of 'tidyverse' Code
## Description
The 'tidyverse' is awesome, but can take a bit to compile on systems
where there are no pre-built binary packages. Methods are provided which use
the facilities of the 'usethis' package to snap-in base versions of useful
'tidyverse' functions that are mostly equivalent (some are more complete
than others). The base R counterpart functions will likely be slower than
the 'tidyverse' equivalents but using them will decrease 'Imports'
dependencies.Use deliberately and with caution.
## NOTEThis package shares core concepts with [`noplyr`](https://github.com/yonicd/noplyr) (and the author of `noplyr` is a contributor to `freebase`). For valid, needed reason, `noplyr` uses `rlang` and that introduces a compilation dependency/requirement which `freebase` is trying to avoid. The goal of `freebase` is 100% base R implementation of core/most frequently used `tidyverse` components primarily for use by package authors who prefer `tidyverse` idioms and would like to use them in package development but do not want to introduce compilation and/or third-party dependencies.
As noted _just above_, `freebase` should be uses deliberately and with caution.
## What's Inside The Tin
The following functions are implemented:
- `use_detect`: Use base R versions of `purrr` `detect` functions (these support `~{}` formula functions)
- `use_infix_helpers`: Use infix-helpers
- `use_isers`: Use "is_" tester functions
- `use_keepers`: Use base R versions of `purrr` `keep` functions (these support `~{}` formula functions)
- `use_mappers`: Use base R versions of `purrr` `map` functions (these support `~{}` formula functions) along with `set_names()`
- `use_safely`: Use base R versions of `purrr` `safely` functions
- `use_tidylite()`: Use base R versions of core `tidyr` functions
- `use_walkers`: Use base R versions of `purrr` `walk` functions (these support `~{}` formula functions)## Installation
```{r eval=FALSE}
devtools::install_git("git://gitlab.com/hrbrmstr/freebase")
``````{r message=FALSE, warning=FALSE, error=FALSE, include=FALSE}
options(width=120)
```## Usage
```{r message=FALSE, warning=FALSE, error=FALSE}
library(freebase)# current version
packageVersion("freebase")```