Skip to content

Commit a046a58

Browse files
committed
refactoring
1 parent de51a5a commit a046a58

File tree

4 files changed

+154
-96
lines changed

4 files changed

+154
-96
lines changed

vignettes/howto.Rmd renamed to HOWTO_BUILD_WORKSHOP.md

+19-20
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,7 @@
1-
---
2-
title: "How to Create a Workshop Package"
3-
subtitle: "(Automatically)"
4-
author: Sean Davis^[[email protected]]
5-
output: rmarkdown::html_vignette
6-
vignette: >
7-
%\VignetteIndexEntry{How to create a workshop package}
8-
%\VignetteEngine{knitr::rmarkdown}
9-
%\VignetteEncoding{UTF-8}
10-
---
111

122
## Quickstart
133

14-
- [ ] Clone this repo (not fork)
4+
- [ ] Clone this repo, fork and rename it, or create a repo from this template
155
- [ ] Edit `DESCRIPTION` file
166
- [ ] Change package name
177
- [ ] Change title and description
@@ -42,20 +32,29 @@ repo `username/reponame`. Installation will deal with this.
4232

4333
### Edit `.github/workflows/basic_checks.yaml`
4434

35+
**You MUST change the `repository` line in this yaml file to be YOUR
36+
desired Docker image name**. In other words, this section of the github
37+
actions file will build and push to dockerhub the image with this name.
38+
39+
40+
```yaml
41+
- uses: docker/build-push-action@v1
42+
with:
43+
username: ${{ secrets.DOCKER_USERNAME }}
44+
password: ${{ secrets.DOCKER_PASSWORD }}
45+
# change the next line to reflect the name
46+
# of YOUR dockerhub repository
47+
repository: seandavi/buildabiocworkshop2020
48+
tag_with_ref: true
49+
tag_with_sha: true
50+
tags: latest
51+
```
4552
4653
### Add "secrets" to github repo
4754
4855
- required secrets and their names
4956
5057
- `DOCKER_USERNAME`
5158
- `DOCKER_PASSWORD`
52-
- `
53-
54-
55-
```{r, include = FALSE}
56-
knitr::opts_chunk$set(
57-
collapse = TRUE,
58-
comment = "#>"
59-
)
60-
```
59+
- Github `ACCESS_TOKEN`
6160

README.md

+25-76
Original file line numberDiff line numberDiff line change
@@ -1,89 +1,38 @@
1-
# Workshop Title
1+
## BuildABiocWorkshop2020
22

3-
Authors:
4-
Author Name^[Institution],
5-
Another Author^[Another Institution].
6-
<br/>
7-
Last modified: 14 May, 2018.
3+
This package is a template for building a Bioconductor 2020 workshop. The package
4+
includes Github actions to:
85

9-
## Overview
6+
1. Set up bioconductor/bioconductor_docker:devel on Github resources
7+
2. Install package dependencies for your package (based on the `DESCRIPTION` file)
8+
3. Run `rcmdcheck::rcmdcheck`
9+
4. Build a pkgdown website and push it to github pages
10+
5. Build a docker image with the installed package and dependencies
1011

11-
### Description
12+
## Results of successful deployment
1213

13-
Along with the topic of your workshop, include how students can expect
14-
to spend their time. For the description may also include information
15-
about what type of workshop it is (e.g. instructor-led live demo, lab,
16-
lecture + lab, etc.). Instructors are strongly recommended to provide
17-
completely worked examples for lab sessions, and a set of stand-alone
18-
notes that can be read and understood outside of the workshop.
14+
- A working docker image that contains the installed package and dependencies.
15+
- An up-to-date `pkgdown` website at https://YOURUSERNAME.github.io/YOURREPOSITORYNAME/
16+
- Docker image will be tagged with `latest`, `sha-XXXXXX` where `XXXXXX` is the hash of the current `master` commit, and `master`.
1917

20-
### Pre-requisites
18+
## To use the resulting image:
2119

22-
List any workshop prerequisites, for example:
20+
```sh
21+
docker run -e PASSWORD=<choose_a_password_for_rstudio> -p 8787:8787 YOURDOCKERIMAGENAME
22+
```
23+
Once running, navigate to https://localhost:8787/ and then login with `rstudio`:`yourchosenpassword`.
2324

24-
* Basic knowledge of R syntax
25-
* Familiarity with the GenomicRanges class
26-
* Familiarity with xyz vignette (provide link)
25+
To try with **this** repository docker image:
2726

28-
List relevant background reading for the workshop, including any
29-
theoretical background you expect students to have.
27+
```sh
28+
docker run -e PASSWORD=abc -p 8787:8787 seandavi/buildabiocworkshop2020
29+
```
3030

31-
* List any textbooks, papers, or other reading that students should be
32-
familiar with. Include direct links where possible.
3331

34-
### Participation
32+
## Details
3533

36-
Describe how students will be expected to participate in the workshop.
34+
For detailed instructions, see [HOWTO_BUILD_WORKSHOP.md].
3735

38-
### _R_ / _Bioconductor_ packages used
36+
## Whatcha get
3937

40-
List any _R_ / _Bioconductor_ packages that will be explicitly covered.
41-
42-
### Time outline
43-
44-
An example for a 45-minute workshop:
45-
46-
| Activity | Time |
47-
|------------------------------|------|
48-
| Packages | 15m |
49-
| Package Development | 15m |
50-
| Contributing to Bioconductor | 5m |
51-
| Best Practices | 10m |
52-
53-
### Workshop goals and objectives
54-
55-
List "big picture" student-centered workshop goals and learning
56-
objectives. Learning goals and objectives are related, but not the
57-
same thing. These goals and objectives will help some people to decide
58-
whether to attend the conference for training purposes, so please make
59-
these as precise and accurate as possible.
60-
61-
*Learning goals* are high-level descriptions of what
62-
participants will learn and be able to do after the workshop is
63-
over. *Learning objectives*, on the other hand, describe in very
64-
specific and measurable terms specific skills or knowledge
65-
attained. The [Bloom's Taxonomy](#bloom) may be a useful framework
66-
for defining and describing your goals and objectives, although there
67-
are others.
68-
69-
### Learning goals
70-
71-
Some examples:
72-
73-
* describe how to...
74-
* identify methods for...
75-
* understand the difference between...
76-
77-
### Learning objectives
78-
79-
* analyze xyz data to produce...
80-
* create xyz plots
81-
* evaluate xyz data for artifacts
82-
83-
## Workshop
84-
85-
Divide the workshop into sections (`## A Section`). Include
86-
fully-evaluated _R_ code chunks. Develop exercises and solutions, and
87-
anticipate that your audience will walk through the code with you, or
88-
work on the code idependently -- do not be too ambitious in the
89-
material that you present.
38+
![dockerhub](inst/images/dockerhub.png)

inst/images/dockerhub_result.png

226 KB
Loading

vignettes/workshop_example.Rmd

+110
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
---
2+
title: "An Example Workshop"
3+
author: Sean Davis^[[email protected]]
4+
output: rmarkdown::html_vignette
5+
vignette: >
6+
%\VignetteIndexEntry{An Example Workshop}
7+
%\VignetteEngine{knitr::rmarkdown}
8+
%\VignetteEncoding{UTF-8}
9+
---
10+
11+
12+
```{r, include = FALSE}
13+
knitr::opts_chunk$set(
14+
collapse = TRUE,
15+
comment = "#>"
16+
)
17+
```
18+
19+
# Workshop Title
20+
21+
Authors:
22+
Author Name^[Institution],
23+
Another Author^[Another Institution].
24+
<br/>
25+
Last modified: 14 May, 2018.
26+
27+
## Overview
28+
29+
### Description
30+
31+
Along with the topic of your workshop, include how students can expect
32+
to spend their time. For the description may also include information
33+
about what type of workshop it is (e.g. instructor-led live demo, lab,
34+
lecture + lab, etc.). Instructors are strongly recommended to provide
35+
completely worked examples for lab sessions, and a set of stand-alone
36+
notes that can be read and understood outside of the workshop.
37+
38+
### Pre-requisites
39+
40+
List any workshop prerequisites, for example:
41+
42+
* Basic knowledge of R syntax
43+
* Familiarity with the GenomicRanges class
44+
* Familiarity with xyz vignette (provide link)
45+
46+
List relevant background reading for the workshop, including any
47+
theoretical background you expect students to have.
48+
49+
* List any textbooks, papers, or other reading that students should be
50+
familiar with. Include direct links where possible.
51+
52+
### Participation
53+
54+
Describe how students will be expected to participate in the workshop.
55+
56+
### _R_ / _Bioconductor_ packages used
57+
58+
List any _R_ / _Bioconductor_ packages that will be explicitly covered.
59+
60+
### Time outline
61+
62+
An example for a 45-minute workshop:
63+
64+
| Activity | Time |
65+
|------------------------------|------|
66+
| Packages | 15m |
67+
| Package Development | 15m |
68+
| Contributing to Bioconductor | 5m |
69+
| Best Practices | 10m |
70+
71+
### Workshop goals and objectives
72+
73+
List "big picture" student-centered workshop goals and learning
74+
objectives. Learning goals and objectives are related, but not the
75+
same thing. These goals and objectives will help some people to decide
76+
whether to attend the conference for training purposes, so please make
77+
these as precise and accurate as possible.
78+
79+
*Learning goals* are high-level descriptions of what
80+
participants will learn and be able to do after the workshop is
81+
over. *Learning objectives*, on the other hand, describe in very
82+
specific and measurable terms specific skills or knowledge
83+
attained. The [Bloom's Taxonomy](#bloom) may be a useful framework
84+
for defining and describing your goals and objectives, although there
85+
are others.
86+
87+
### Learning goals
88+
89+
Some examples:
90+
91+
* describe how to...
92+
* identify methods for...
93+
* understand the difference between...
94+
95+
### Learning objectives
96+
97+
* analyze xyz data to produce...
98+
* create xyz plots
99+
* evaluate xyz data for artifacts
100+
101+
## Workshop
102+
103+
Divide the workshop into sections (`## A Section`). Include
104+
fully-evaluated _R_ code chunks. Develop exercises and solutions, and
105+
anticipate that your audience will walk through the code with you, or
106+
work on the code idependently -- do not be too ambitious in the
107+
material that you present.
108+
109+
110+

0 commit comments

Comments
 (0)