Giter Club home page Giter Club logo

gitr's Introduction

gitR

Routines for doing simple GitHub ops from within R, some in combination with your text editor.

Example:

gitEdPush('x','"test case"') 

will open your (shell default) text editor, allow you to edit and save x, then automatically push the file to GitHub -- all in one seamless operation. The message, in this case "test case", will be used for the git commit.

Example:

gitOpPush('x','"not needed anymore"','rm')

Removes the file x, then does commit and push, with the specified commit comment. Other allowed ops are 'add', 'mv' and 'rm -r').

Example:

gitCO()

Executes 'git log' (does 'git checkout master' first), then gives user a choice of which commit, if any, the user wishes to switch to.

Example:

gitCO(master=TRUE)

Return to the master version of the repo.

Example:

gitCO(files='rr')

Show all commits involving changes to the file rr.

Example:

gitFindFile('uu','x8')

Finds the most recent commit that included the file uu, which in turn included the text 'x8'.

Example:

gitLS()

Reports (separately), tracked and untracked files in the current directory/commit.

Example:

gitClean()

Reports untracked files, and asks user whether to delete.

gitr's People

Contributors

matloff avatar fran496 avatar

Stargazers

NelsonGon avatar

Watchers

James Cloos avatar  avatar  avatar  avatar NelsonGon avatar

gitr's Issues

Show a map of the log

Basically:

git log  --oneline --graph

but not as ASCII art in the R console but a graph, as a way to see comfortably the history of the project locally. The ASCII art generated by git is kinda hard to read when you have multiple branches.

Maybe this exceeds the purpose of the package, I want to know your opinion Norm. This is my first issue ever and I wish to contribute.

openShellEditor() returns 127 in Windows

Right now I'm at work and Sys.getenv('EDITOR') is returning "" in my session because the environment variable doesn't exist in Windows (at home I have Linux), this causes the command in makeSysCmd() return 127.

We should have this issue open to be aware that we need to adapt openShellEditor() for OS Win at some point, since is the most used OS.

Consider also the idea of using direct calls to file.edit() as a substitute for openShellEditor(), since it uses getOption('editor') to find out the default editor of the system.

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.