Skip to content

csgillespie/renamer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The renamer Package

Tired of the disparate naming systems in R? Then this is the package for you.

The package is located in my drat repo, and the latest version can be installed via

install.packages("renamer", repos="http://csgillespie.github.io/drat", type="source")

or if you have drat installed

drat::addRepo("csgillespie")
install.packages("renamer")

Example: The CamelCaseR

If have an unnatural fear of underscores, that prevents the use of ggplot2, then you are saved

## Assumes you have ggplot2 installed
library(renamer)
camelCase("ggplot2")

Then

data(cars)
ggplot(cars) + geomPoint(aes(speed, dist))

Example: The UnderscoreR

If you've want to try the excellent drat package, but you find the lack of underscores unnerving, you too are saved

library(renamer)
install.packages("drat", repos="http://eddelbuettel.github.io/drat")
under_score("drat")

The examples on the drat homepage become

add_repo("eddelbuettel")
insert_package("drat_0.0.1.tar.gz")

Future directions

Now that the problem with the R naming system has been solved, the next logical step is to remove differences between languages

  • lisp converter - randomly add brackets to all functions
  • python - insert spaces/tabs on every line
  • FORTRAN - all code starts on the eighth column

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published