Skip to content

Commit 097b7a3

Browse files
committed
loaded in jsonlite package; changed path to .betykey
1 parent 66a0dd2 commit 097b7a3

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

traits/02-betydb-api-access.Rmd

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,16 @@ curl -o sorghum.json \
9696

9797
## Using the R jsonlite package to access the API with a URL query
9898

99+
```{r 02-jsonlite-load, include = FALSE}
100+
101+
library(jsonlite)
102+
103+
```
104+
99105
```{r text-api, warning = FALSE}
100106
sorghum.json <- readLines(
101107
paste0("https://terraref.ncsa.illinois.edu/bety/api/v1/species?genus=Sorghum&key=",
102-
readLines('traits/.betykey')))
108+
readLines('.betykey')))
103109
104110
## print(sorghum.json)
105111
## not a particularly useful format

0 commit comments

Comments
 (0)