Skip to content

Commit 9bb1c44

Browse files
author
Compagnoni
committed
Fix 'summary_table' bug in pplr_get_data
1 parent 53ff881 commit 9bb1c44

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ dictionary\.html
1111
dictionary\.Rmd
1212
MS/
1313
browse_files
14+
inst/doc

DESCRIPTION

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,14 @@ Imports:
3030
utils (>= 3.3.0)
3131
License: MIT + file LICENSE
3232
Encoding: UTF-8
33-
Suggests:
33+
Suggests:
3434
fs (>= 1.2.2),
3535
knitr (>= 1.15.1),
3636
maps (>= 3.3.0),
3737
mapproj (>= 1.2.6),
3838
testthat(>= 2.0.0),
39-
covr (>= 3.1.0)
39+
covr (>= 3.1.0),
40+
rmarkdown
4041
LazyData: true
4142
RoxygenNote: 6.1.0
4243
VignetteBuilder: knitr

R/get_data.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ pplr_get_data <- function(..., cov_unpack = FALSE){
8181

8282
# query -----------------------------------------------------------------
8383

84+
summary_table <- pplr_summary_table_import()
85+
8486
# get id of studies
8587
id_vec <- summary_table %>%
8688
subset( eval(updated_calls) ) %>%

vignettes/introduction-to-popler.Rmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ pplr_report_dictionary()
5858

5959
`pplr_browse()` accesses and subsets the popler metadata table directly. Calling the function returns a table that contains the metadata of all the projects in `popler`:
6060

61-
```{r, eval = FALSE}
61+
```{r, eval=FALSE}
6262
all_studies <- pplr_browse()
6363
```
6464

@@ -71,7 +71,7 @@ poa_metadata
7171

7272
Moreover, akin to `pplr_report_dictionary()`, browse can generate a report and open it as an html page. To do so, set the `report` variable to `TRUE`. Alternatively, you can pass an object created by `browse()` to `pplr_report_metadata()` to create the same report.
7373

74-
```{r eval = FALSE}
74+
```{r, eval = FALSE}
7575
7676
pplr_browse(lterid == "SEV", report = TRUE)
7777

0 commit comments

Comments
 (0)