Skip to content

Commit

Permalink
update data loading command
Browse files Browse the repository at this point in the history
  • Loading branch information
rdboyes committed Oct 30, 2021
1 parent a0c1d6c commit 26ab7cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Forester simply requires the left side of the table (in this case, three columns
```{r example}
library(forester)
table <- readxl::read_excel(here::here("inst/extdata/example_figure_data.xlsx"))
table <- readxl::read_excel(system.file("extdata", "example_figure_data.xlsx", package = "forester"))
# indent the subgroup if there is a number in the placebo column
table$Subgroup <- ifelse(is.na(table$Placebo),
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ which contain the point estimates and confidence intervals.
``` r
library(forester)

table <- readxl::read_excel(here::here("inst/extdata/example_figure_data.xlsx"))
table <- readxl::read_excel(system.file("extdata", "example_figure_data.xlsx", package = "forester"))

# indent the subgroup if there is a number in the placebo column
table$Subgroup <- ifelse(is.na(table$Placebo),
Expand Down

0 comments on commit 26ab7cf

Please sign in to comment.