GithubHelp home page GithubHelp logo

pombredanne / pkgnet-gallery Goto Github PK

View Code? Open in Web Editor NEW

This project forked from uptake/pkgnet-gallery

0.0 2.0 0.0 1.94 MB

the gallery for pkgnet

Home Page: https://uptakeopensource.github.io/pkgnet/index.html

License: Other

R 0.04% HTML 99.96%

pkgnet-gallery's Introduction

Welcome to the pkgnet Gallery Repository!

Please visit the pkgnet website to view the gallery. See below for how to contribute.

FAQs

How can I contribute an example to the gallery?

1. Create an exhibit

To create the exhibit with one command, use create_exhibit.R It creates both the report and image and saves them in an exhibit folder. Use it right from the terminal via Rscript.

$ Rscript -e 'install.packages("pkgnet")' # if necessary
$ git clone https://github.com/UptakeOpenSource/pkgnet-gallery.git
$ cd pkgnet-gallery
$ Rscript create_exhibit.R -o exhibits <package name>

Optionally, if you have the R package downloaded locally, you can create an exhibit with code coverage information.

$ Rscript create_exhibit.R -o exhibits -p <path to package> <package name> 

See the help documentation for more information:

$ Rscript create_exhibit.R -h

2. Host your exhibit

If you would like to host your examples on this repository, include their addition to the exhibits folder in your pull request.

If you have the means and desire to host your exhibits yourself, you are welcome to do that.

3. Add your exhibit to the gallery page

Add your exhibit to vignettes/pkgnet-gallery.Rmd. Find the line that says

### ADD NEW EXHIBITS ABOVE THIS LINE ###

and then add a new entry to the list above that line for your package. (Note the leading comma---you shouldn't need to touch any other lines.)

    , list(
        package_name = "[Your Package Name]"
        , report_url = "[URL to your package report]"
        , image_url = "[URL to your image]"
    )

OPTIONAL: If you have the knitr and glue packages installed, you should be able to test that everything runs through correctly by hitting "Knit" if you're using RStudio.

4. Submit!

Submit a pull request!

Why is this a seperate repository?

There are a few reasons:

  1. We would like to enable gallery updates more often than CRAN version updates.
  2. We would like to keep the pkgnet website in line with the last stable version of pkgnet (i.e. the CRAN version).
  3. We would like to keep the pkgnet github repository small in size.

By having the gallery content hosted here, we achieve all three of these things.

Why are there so many seemingly extra files in this repository?

We want to make the transition from the main pkgnet website to the gallery page within that website as seamless as possible. To do so, we create the gallery page with the same R package, pkgdown, that we use to create the main page with very similar configuration files. Since creating a section of a website outside of the R package directory is not standard functionality for pkgdown, we replicate a few files and folder structures pkgdown expects here.

Isn't there a better why to do this?

Most likely. We've love for you to submit your ideas on the issues page (preferably on the main pkgnet repository).

pkgnet-gallery's People

Contributors

alistaire47 avatar amysheep avatar bburns632 avatar jayqi 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.