GithubHelp home page GithubHelp logo

binder-test's Introduction

Example repo for testing holepunch

Launch Rstudio Binder

This repository is an example repo to test out the holepunch package. It uses a few tidyverse packages but also the dataRetrieval package for the yahara_dat dataset.

To test holepunch, follow these steps:

  1. Click Use this template to the left of Clone or download. template
  2. Give this repo a new name and create a new repo in your account
  3. Click the Clone or download button, copy the URL.

  1. in RStudio Desktop, click the Project drop down on the top right, Choose New Project > Version Control > Git, and paste in the URL of your new GitHub repository

Now in RStudio

  1. Install holepunch with remotes::install_github("karthik/holepunch")
  2. Then run the following code:
library(holepunch)
write_compendium_description(package = "Your compendium name", 
                             description = "Your compendium description")
# to write a description, with dependencies listed 
# It's good practice to now go fill in the placeholder text.

write_dockerfile(maintainer = "your_name") 
# To write a dockerfile. It will automatically pick the date of the last modified file, match it to 
# that version of R and add it here. You can override this by passing r_date to some arbitrary date
# (but one for which a R version exists).

generate_badge()
# This generates a badge for your readme.

# At this time ๐Ÿ™Œ push the code to GitHub ๐Ÿ™Œ
# If you're new to Git/GitHub, you can click the Git tab on Rstudio, then click commit to see
# all changed files/folders, including the hidden .binder folder. Give this a commmit message and push

# And click on the badge or use the function below to get the binder built ahead of time.
build_binder()
# ๐Ÿคž๐Ÿš€

Now, run through analysis.R till you get to a plot

Does clicking the badge launch binder for you? If not, please file an issue.

binder-test's People

Contributors

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