-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/oxford-pharmacoepi/Develope…
- Loading branch information
Showing
6 changed files
with
145 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Getting started {.unnumbered} | ||
|
||
To build an R package you will need [R](https://cran.r-project.org/bin/windows/base/) installed and an IDE: preferably [R Studio](https://posit.co/download/rstudio-desktop/) or [Positron](https://github.com/posit-dev/positron/releases). | ||
|
||
There are some packages that you will need [devtools](https://devtools.r-lib.org) and [usethis](https://usethis.r-lib.org) they are key to follow the different steps on this package building tutorial. | ||
|
||
```{r, eval=FALSE} | ||
install.packages("pak") | ||
library(pak) | ||
pkg_install("usethis") | ||
pkg_install("devtools") | ||
``` | ||
|
||
|
||
To work with the omopverse, you will also need to install the [omopgenerics](https://darwin-eu-dev.github.io/omopgenerics/) package. Alongside with other packages that may be useful: | ||
|
||
- [PatientProfiles](https://darwin-eu-dev.github.io/PatientProfiles/) for data manipulation. | ||
- [CodelistDiagnostics](https://darwin-eu.github.io/CodelistDiagnostics/) to query the vocabularies. | ||
- [visOmopResults](https://darwin-eu.github.io/visOmopResults/) for data visualisation. | ||
|
||
You can see the list of the omopverse packages in our [website](https://oxford-pharmacoepi.github.io/Oxinfer/packages.html). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,31 @@ | ||
# Getting started | ||
# Introduction {.unnumbered} | ||
|
||
This is an **opinionated** book on how we develop packages in the omopverse. | ||
|
||
R packages | ||
|
||
For general R package development we recommend the following book: [R Packages; Learn how to create a package, the fundamental unit of shareable, reusable, and reproducible R code](https://r-pkgs.org). | ||
|
||
The book is divided in four parts: | ||
|
||
- **Part one**: covers the main ... | ||
- **Part two**: covers the main ... | ||
- **Part three**: covers the main ... | ||
- **Part four**: covers the main ... | ||
- **Part five**: covers the main ... | ||
|
||
- Before developing the package | ||
- scope | ||
- how it fits within the ecosystem | ||
- classes (they are deffined in omopgenerics) | ||
- error messages | ||
- Why? | ||
- How? | ||
- naming | ||
- functions | ||
- strcutures: `generate...CohortSet`, `...Cohort`, `add...`, `summarise...`, `plot...`, `table...`, | ||
- arguments | ||
- input validation | ||
- testing | ||
- reexport | ||
- main branch should be protected |
This file was deleted.
Oops, something went wrong.