A ‘usethis’-esque Package for Base R Versions of ‘tidyverse’ Code
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
boB Rudis f778f9a966
Update README.md
il y a 6 ans
R Standardize function documentation il y a 6 ans
docs Standardize function documentation il y a 6 ans
inst/templates add map_dfc, bind_cols, fix map2 calls il y a 6 ans
man Standardize function documentation il y a 6 ans
tests initial commit il y a 6 ans
.Rbuildignore initial commit il y a 6 ans
.codecov.yml initial commit il y a 6 ans
.gitignore initial commit il y a 6 ans
.travis.yml initial commit il y a 6 ans
DESCRIPTION See NEWS.md for full info; improved mappers; added set_names(); fixed #12 by making the walkers for loops il y a 6 ans
LICENSE initial commit il y a 6 ans
NAMESPACE add unitelite to tidylite functions il y a 6 ans
NEWS.md See NEWS.md for full info; improved mappers; added set_names(); fixed #12 by making the walkers for loops il y a 6 ans
README.Rmd link to noplyr il y a 6 ans
README.md Update README.md il y a 6 ans
freebase.Rproj add unitelite to tidylite functions il y a 6 ans

README.md

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.

NOTE

This package shares core concepts with noplyr (and the author of noplyr is a contributor to freebase). For valid, needed reasons, noplyr uses rlang which 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 used 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

devtools::install_git("git://gitlab.com/hrbrmstr/freebase")

Usage

library(freebase)

# current version
packageVersion("freebase")
## [1] '0.2.0'