56 |
57 | 3. **Create Github repo & add as remote:** Now, while in your review project in Rstudio, run:
58 |
59 | ```r
60 | usethis::use_github(protocol = "https")
61 | ```
62 | to create a github repository for your review and add it as a remote for your review project. The naming of the github repository is handled automatically.
63 |
64 |
91 |
92 | + **Github Pages is now enabled and your report review [will be published](http://annakrystalli.me/rdflib-review/index.nb.html) at the link displayed:**
93 |
94 |
95 |
--------------------------------------------------------------------------------
/vignettes/get_started.Rmd:
--------------------------------------------------------------------------------
1 | ---
2 | title: "Getting Started"
3 | date: "`r Sys.Date()`"
4 | output: rmarkdown::html_vignette
5 | vignette: >
6 | %\VignetteIndexEntry{Getting Started}
7 | %\VignetteEngine{knitr::rmarkdown}
8 | %\VignetteEncoding{UTF-8}
9 | ---
10 |
11 | ```{r setup, include = FALSE}
12 | knitr::opts_chunk$set(
13 | collapse = TRUE,
14 | comment = "#>"
15 | )
16 | ```
17 |
18 | ### Example
19 |
20 | This is a basic example of **setting up an rOpenSci package review project**:
21 |
22 |
23 | ### 1. create review project
24 |
25 | Create the review project, using `pkgreview_create`. The function takes arguments:
26 |
27 | * **`pkg_repo`:** the **GitHub repo** details of the **package under review** in the form `username/repo`
28 | * **`review_parent`:**, the **local directory** in which the **review project (and folder) will be created** and **package source code will be cloned into**.
29 |
30 | ``` r
31 | library(pkgreviewr)
32 | pkgreview_create(pkg_repo = "ropensci/rdflib",
33 | review_parent = "~/Documents/workflows/rOpenSci/reviews/")
34 | ```
35 |
36 | The function creates a new review project in the `review_parent` directory following project naming convention `{pkgname}-review` and populates the review templates to create all required documents.
37 |
38 | #### review files
39 |
40 | The review project directory will contain all the files you'll need to complete the review and will be initialised with git.
41 |
42 | ```
43 | rdflib-review
44 | ├── README.md
45 | ├── index.Rmd
46 | ├── pkgreview.md
47 | └── rdflib-review.Rproj
48 | ```
49 |
50 | #### **`index.Rmd`**
51 |
52 | The most important file it creates is the `index.Rmd html_notebook` file. This workbook is prepopulated with all the major steps required to complete the review in an interactive document to perform and record it in. It also extracts useful links, information and parameter values.
53 |
54 | **See example [here](https://github.com/annakrystalli/pkgreviewr/blob/master/inst/examples/example-review-index.Rmd).**
55 |
56 | Once rendered to **`index.nb.html`** (`*.nb.html` is the notebook file format), this report can be pushed to GitHub for publication.
57 |
58 | #### **`pkgreview.md`**
59 |
60 | Template response form to submit to the package rOpenSci onboarding review issue.
61 |
62 | **See template [here](https://github.com/annakrystalli/pkgreviewr/blob/master/inst/examples/example-pkgreview.md)**.
63 |
64 | #### **`README.md`**
65 |
66 | Prepopulated README for the review repo that will present the repo to people navigating to it.
67 |
68 | **See example [here:](https://github.com/annakrystalli/pkgreviewr/blob/master/inst/examples/example-README.md)**.
69 |
70 | ***
71 |
72 |
73 |
74 |
75 |
76 | #### clone of package source code
77 |
78 | To enable local testing of the package, review creation also clones the review package source code into `review_parent` from the github repository defned in `pkg_repo` . This also makes it available for local review and perhaps even a pull request. Correcting typos in documentation can be a great review contribution, but first you might want to check the contributing guidelines or ask the author if they are open to such pull requests.
79 |
80 | The resulting files from a successful review project will look like this:
81 |
82 | ```
83 | reviews
84 | ├── rdflib
85 | │ ├── DESCRIPTION
86 | │ ├── LICENSE
87 | │ ├── NAMESPACE
88 | │ ├── NEWS.md
89 | │ ├── R
90 | │ │ └── rdf.R
91 | │ ├── README.Rmd
92 | │ ├── README.md
93 | │ ├── appveyor.yml
94 | │ ├── codecov.yml
95 | │ ├── codemeta.json
96 | │ ├── docs
97 | │ │ ├── LICENSE.html
98 | │ │ ├── articles
99 | │ │ │ ├── index.html
100 | │ │ │ ├── rdflib.html
101 | │ │ │ └── rdflib_files
102 | │ │ │ ├── datatables-binding-0.2
103 | │ │ │ │ └── datatables.js
104 | │ │ │ ├── dt-core-1.10.12
105 | │ │ │ │ ├── css
106 | │ │ │ │ │ ├── jquery.dataTables.extra.css
107 | │ │ │ │ │ └── jquery.dataTables.min.css
108 | │ │ │ │ └── js
109 | │ │ │ │ └── jquery.dataTables.min.js
110 | │ │ │ ├── htmlwidgets-0.9
111 | │ │ │ │ └── htmlwidgets.js
112 | │ │ │ └── jquery-1.12.4
113 | │ │ │ ├── LICENSE.txt
114 | │ │ │ └── jquery.min.js
115 | │ │ ├── authors.html
116 | │ │ ├── index.html
117 | │ │ ├── jquery.sticky-kit.min.js
118 | │ │ ├── link.svg
119 | │ │ ├── news
120 | │ │ │ └── index.html
121 | │ │ ├── pkgdown.css
122 | │ │ ├── pkgdown.js
123 | │ │ └── reference
124 | │ │ ├── index.html
125 | │ │ ├── rdf.html
126 | │ │ ├── rdf_add.html
127 | │ │ ├── rdf_parse.html
128 | │ │ ├── rdf_query.html
129 | │ │ ├── rdf_serialize.html
130 | │ │ └── rdflib-package.html
131 | │ ├── inst
132 | │ │ ├── examples
133 | │ │ │ └── rdf_table.R
134 | │ │ └── extdata
135 | │ │ ├── ex.xml
136 | │ │ └── vita.json
137 | │ ├── man
138 | │ │ ├── rdf.Rd
139 | │ │ ├── rdf_add.Rd
140 | │ │ ├── rdf_parse.Rd
141 | │ │ ├── rdf_query.Rd
142 | │ │ ├── rdf_serialize.Rd
143 | │ │ └── rdflib-package.Rd
144 | │ ├── paper.bib
145 | │ ├── paper.md
146 | │ ├── rdflib.Rproj
147 | │ ├── tests
148 | │ │ ├── testthat
149 | │ │ │ └── test-rdf.R
150 | │ │ └── testthat.R
151 | │ └── vignettes
152 | │ └── rdflib.Rmd
153 | └── rdflib-review
154 | ├── README.md
155 | ├── index.Rmd
156 | └── rdflib-review.Rproj
157 |
158 | ```
159 |
160 |