Coder Social home page Coder Social logo

badgecreatr's Introduction

Project Status: Active ? The project has reached a stable, usable state and is being actively developed. Licence Build Status codecov


minimal R version CRAN_Status_Badge packageversion


Last-changedate

badgeimage

Introduction

This package was inspired by the badgerbadger package that checks for badges of travis, code coverage open issues, dependencies and licenses. It would be nice to have a simple function that adds these things to a readme.rmd file in R. It will save you typing and searching for the exact markdown on the websites of travis, codecov, repostatus.org etc.

This package does now place the following badges /shields:

  • repo status according to http://www.repostatus.org/
  • licence (recognize from DESCRIPTION file)
  • travis shield
  • code coverage
  • minimal R version (recognize from DESCRIPTION file)
  • cran badge
  • packageversion (recognize from DESCRIPTION file)
  • last change (this will automagically update everytime you knit your readme.rmd)

Possible future badges

  • [] nr of open issues
  • [] number of pull requests
  • [] number of downloads CRAN
  • [] number of dependencies and:
  • [] a way to visualize their version

Workflow

I like to use the following workflow:

  • start a new project in rstudio
  • after some functions are made start a package
  • start a github repo
  • create a readme.rmd
  • ( this is where badgecreatr comes in) create badges
  • continue with the project
  • submit to cran, bioconductor, ropensci etc

You will probably call badgecreatr only once, somewhere during your work.

If you call badgecreatr again when you already have badges, they will be recognized. [(see CHANGELOG)]](CHANGELOG.md)

Installation

badgecreatr is on CRAN, install using install.packages("badgecreatr")

The newest 'developmental' version is installed with devtools::install_github("rmhogervorst/badgecreatr")

use

Whenever you have created a readme, use badgeplacer() or don't even load the package I would just call badgecreatr::badgeplacer(githubaccount = "RMHogervorst",githubrepo = "badgecreatr") for this package.

And if I would just start with this package I would make a different status:

badgecreatr::badgeplacer(status = "wip" , githubaccount = "RMHogervorst",githubrepo = "badgecreatr") Which would make this a work in progress status badge.

Use

You will have to supply the github accountname, repo and branch. I'm working to automatically recognize those.

Contact

Want to help or have questions? Contact me directly, use an issue, fork me or submit a pull request.

star this repo fork this repo

Inspiration

I found the projectstatus http://www.repostatus.org/ and the wonderful shields.io projects and wanted to implement that for all my packages. But that took a lot of work. Repetitive work, and I don't like that.

The badgerbadgerbadger project in ruby did all these things automatically. I wanted to do the same thing for R projects. And I did.

badgecreatr's People

Contributors

privefl avatar rmhogervorst avatar

Watchers

 avatar  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.