GithubHelp home page GithubHelp logo

indenkun / volunteervignettes Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jonocarroll/volunteervignettes

0.0 0.0 0.0 47.04 MB

The world needs more #rstats vignettes, so I'll be the change I want to see

Home Page: https://twitter.com/carroll_jono/status/961139524901527552

License: Other

R 100.00%

volunteervignettes's Introduction

VolunteerVignettes

The world needs more #rstats vignettes, so I'll be the change I want to see

Automatic Conversion

One option is to convert existing README.Rmd files into vignettes; they typically contain a wealth of information which isn't actually contained within the package.

I've written a patch to the usethis package to allow for this; there are a few complications to navigate and I doubt I've correctly identified 100% of them. This will soon be submitted as a PR.

With the patched version installed, it's as simple as

> usethis::README_to_vignette()
✔ Adding 'knitr' to Suggests field in DESCRIPTIONSetting VignetteBuilder field in DESCRIPTION to 'knitr'Adding 'rmarkdown' to Suggests field in DESCRIPTIONCreating 'vignettes/'Adding '*.html', '*.R' to 'vignettes/.gitignore'Adding 'inst/doc' to './.gitignore'Creating 'vignettes/readme-vignette.Rmd'Modify 'readme-vignette.Rmd'

The author is extracted from the DESCRIPTION file, the title is set as the package title, and the relevant YAML is updated. Nothing too fancy, but it gets the ball rolling. It seems to do an okay job on some packages which have nice README.md files but no vignette:

Performing these conversions highlighted some issues with the process, even after careful treatment; mainly images in unexpected (to the vignette) places. But it also highlighted some neat issues with the READMEs themselves; packages used in the README which weren't marked as Import/Suggests, and image locations not existing. In theory more could be wrong; there is nothing stopping the README from becomming stale. Vignettes are built on install, so something should get flagged either on local check/build/install or during continuous integration testing.

volunteervignettes's People

Contributors

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