Skip to content

Commit

Permalink
fix erroring docs
Browse files Browse the repository at this point in the history
  • Loading branch information
drmowinckels committed Sep 27, 2022
1 parent 73f5193 commit 6c375e9
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion inst/docs/paper1/descriptives.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ child_env$params <- params
child_env$data <- data
child_env$q <- 4
child_env$title <- "Diseases/disorders associated with the brain"
child_env$descr <- glue::glue("Respondents were given the option to tick boxes with the diseases presented above to indicate which ones they associated with the brain. They were allowed to select as many categories as they wished. The question was optional, and as such we present data from the {thousand(length(unique(gbhs_long_q(4, data)$submission_id)))} who responded to the question. We do not know if those who refrained from responding did so because they did not associate any of the diseases with the brain, or if they simply did not wish to respond.")
child_env$descr <- glue::glue("Respondents were given the option to tick boxes with the diseases presented above to indicate which ones they associated with the brain. They were allowed to select as many categories as they wished. The question was optional, and as such we present data from the {thousand(length(unique(gbhs_long_q(data, 4)$submission_id)))} who responded to the question. We do not know if those who refrained from responding did so because they did not associate any of the diseases with the brain, or if they simply did not wish to respond.")
res <- knit_child(
gbhs_path_child("bin_desc.Rmd"),
Expand Down
6 changes: 3 additions & 3 deletions inst/docs/paper1/extra_qs.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ modeltable <- function(data, formula) {

# Question 1
```{r q2-results, results='asis'}
q2_data <- gbhs_long_q(2, gbhs) |>
q2_data <- gbhs_long_q(gbhs,2 ) |>
fix_data()
mod <- binary ~ 1 + gender + age + education
q2_data$data |>
Expand All @@ -90,7 +90,7 @@ The general tendencies as before remain.
# Question 2

```{r q3-data, results='asis'}
q3_data <- gbhs_long_q(3, gbhs) |>
q3_data <- gbhs_long_q(gbhs,3 ) |>
fix_data()
mod <- binary ~ 1 + gender + age + education
q3_data$data |>
Expand All @@ -102,7 +102,7 @@ Men still consider middle and old age as less important when controlling for age
# Question 3

```{r q4-data, results='asis'}
q4_data <- gbhs_long_q(4, gbhs) |>
q4_data <- gbhs_long_q(gbhs, 4) |>
fix_data()
mod <- binary ~ 1 + relationship + age + education
q4_data$data |>
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-paper1-desc.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
test_that("paper1 descr builds", {
skip_on_cran()
skip_if(!testthat:::on_ci())
#skip_if(!testthat:::on_ci())

dr <- test_path("paper1-desc")
# make sure files don't exist
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-paper1-mod.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
test_that("paper1 mod builds", {
skip_on_cran()
skip_if(!testthat:::on_ci())
#skip_if(!testthat:::on_ci())

dr <- test_path("paper1-mod")
# make sure files don't exist
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-paper2-desc.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
test_that("paper2 descr builds", {
skip_on_cran()
skip_if(!testthat:::on_ci())
# skip_if(!testthat:::on_ci())

dr <- test_path("paper2-desc")
# make sure files don't exist
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-paper2-mod.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
test_that("paper2 mod builds", {
skip_on_cran()
skip_if(!testthat:::on_ci())
#skip_if(!testthat:::on_ci())

dr <- test_path("paper2-mod")
# make sure files don't exist
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-paper3-desc.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
test_that("paper3 descr builds", {
skip_on_cran()
skip_if(!testthat:::on_ci())
#skip_if(!testthat:::on_ci())

dr <- test_path("paper3-desc")
# make sure files don't exist
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-paper3-mod.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
test_that("paper3 mod builds", {
skip_on_cran()
skip_if(!testthat:::on_ci())
#skip_if(!testthat:::on_ci())

dr <- test_path("paper3-mod")
# make sure files don't exist
Expand Down

0 comments on commit 6c375e9

Please sign in to comment.