We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 66a0dd2 commit 097b7a3Copy full SHA for 097b7a3
1 file changed
traits/02-betydb-api-access.Rmd
@@ -96,10 +96,16 @@ curl -o sorghum.json \
96
97
## Using the R jsonlite package to access the API with a URL query
98
99
+```{r 02-jsonlite-load, include = FALSE}
100
+
101
+library(jsonlite)
102
103
+```
104
105
```{r text-api, warning = FALSE}
106
sorghum.json <- readLines(
107
paste0("https://terraref.ncsa.illinois.edu/bety/api/v1/species?genus=Sorghum&key=",
- readLines('traits/.betykey')))
108
+ readLines('.betykey')))
109
110
## print(sorghum.json)
111
## not a particularly useful format
0 commit comments