Skip to content

Commit

Permalink
docs: updated README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
simpar1471 committed Oct 16, 2024
1 parent bf62cec commit 983d797
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ library(openFDA)
The full documentation for the API is online, so look at the [openFDA
website](https://open.fda.gov/apis/) to get a full feel for the API itself.

The R package lets you query the API directly from R, using [httr2](https://httr2.r-lib.org/)`.
The R package lets you query the API directly from R, using [httr2](https://httr2.r-lib.org/).

```{r example1_query}
search <- openFDA(
Expand All @@ -68,7 +68,7 @@ json$results[[1]]$openfda$brand_name
json$results[[1]]$openfda$pharm_class_epc
```

I've found `{purrr}` to be very useful for parsing this data quickly.
I've found [purrr](https://purrr.tidyverse.org/) to be very useful for parsing this data quickly.

```{r example3_purrr}
purrr::map_chr(
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ website](https://open.fda.gov/apis/) to get a full feel for the API
itself.

The R package lets you query the API directly from R, using
[httr2](https://httr2.r-lib.org/)\`.
[httr2](https://httr2.r-lib.org/).

``` r
search <- openFDA(
Expand Down Expand Up @@ -77,7 +77,8 @@ json$results[[1]]$openfda$pharm_class_epc
#> [1] "Loop Diuretic [EPC]"
```

I’ve found `{purrr}` to be very useful for parsing this data quickly.
I’ve found [purrr](https://purrr.tidyverse.org/) to be very useful for
parsing this data quickly.

``` r
purrr::map_chr(
Expand Down

0 comments on commit 983d797

Please sign in to comment.