Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/annefou/binder-r
R binder
https://github.com/annefou/binder-r
Last synced: 1 day ago
JSON representation
R binder
- Host: GitHub
- URL: https://github.com/annefou/binder-r
- Owner: annefou
- Created: 2019-06-26T15:38:47.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-09-19T16:41:18.000Z (over 4 years ago)
- Last Synced: 2024-11-05T10:51:40.405Z (about 2 months ago)
- Language: R
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Example repo for testing `holepunch`
This repository is an example repo to test out the [`holepunch`](https://github.com/karthik/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](https://i.imgur.com/TcLpIvM.png)
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.![](https://i.imgur.com/0KEJZ9s.png)
4. 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
![](https://i.imgur.com/oJOV1ng.png)
![](https://i.imgur.com/n3RZrMc.png)
![](https://i.imgur.com/CJcAKR1.png)
![](https://i.imgur.com/ieEmPRU.png)
# Now in RStudio
1. Install `holepunch` with `remotes::install_github("karthik/holepunch")`
2. Then run the following code:```r
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 🙌
# 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](https://github.com/karthik/binder-test/issues/new).