GithubHelp home page GithubHelp logo

coyote's Introduction

Build Status

Coyote

In an effort to keep my entire R environment reproducible, I'm moving everything from my .rprofile (except API keys) into a new package. This package has several functions and settings that make my daily coding in R much easier and faster.

Install this package in R using with:

install_github("karthik/coyote")

Notable functions

  • lsp() - Lists all functions inside a package. Quick way to see what's been exported in a NAMESPACE.
lsp(ggplot2)
[1] "%+%"                       "%+replace%"               
  [3] "aes"                       "aes_all"                  
  [5] "aes_auto"                  "aes_string"               
  [7] "annotate"                  "annotation_custom"        
  [9] "annotation_logticks"       "annotation_map"           
 [11] "annotation_raster"         "autoplot"                 
 [13] "benchplot"                 "borders"                  
 [15] "calc_element"              "continuous_scale"         
 [17] "coord"                     "coord_cartesian"          
 [19] "coord_equal"               "coord_fixed"       
 ... [truncated]

You can also use the pattern argument to narrow down a function you might be looking for.

> lsp(ggplot2, "scale")
 [1] "continuous_scale"          "discrete_scale"           
 [3] "scale_alpha"               "scale_alpha_continuous"   
 [5] "scale_alpha_discrete"      "scale_alpha_identity"     
 [7] "scale_alpha_manual"        "scale_area"               
 [9] "scale_color_brewer"        "scale_color_continuous"   
[11] "scale_color_discrete"      "scale_color_gradient"     
[13] "scale_color_gradient2"     "scale_color_gradientn"    
[15] "scale_color_grey"          "scale_color_hue"          
[17] "scale_color_identity"      "scale_color_manual"       
[19] "scale_colour_brewer"       "scale_colour_continuous"  
[21] "scale_colour_discrete"     "scale_colour_gradient"    
[23] "scale_colour_gradient2"    "scale_colour_gradientn"  
...[truncated]

Shortcuts

I'm lazy, ok? len is particularly useful and wish it were R's default call.

  • len short for length
  • h short for head
  • n short for names
  • s short for summary

Additional notes
All these functions are meant to help with development. I never use any of these in production (i.e. coyote will never show up on the Imports or Depends list for any of my packages). I also run everything with R --vanilla before shipping code to someone else.

If you have suggestions for more functionality, please free to post suggestions via issues or by sending a pull request.

License: CC0

Please file any bugs as issues. Package still needs a lot of work. Pull requests welcome.

coyote's People

Contributors

karthik avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.