Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisorwa committed Oct 7, 2024
1 parent 7ef8338 commit 399fdf4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion tests/testthat/test-autoplot.pop_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ test_that("`autoplot.pop_data()` raise
autoplot(strata = "strat1", type = "density"))
})

test_that("`autoplot.pop_data()` produces stable results for `type = 'density'`",
test_that("`autoplot.pop_data()` produces
stable results for `type = 'density'`",
{
skip_if(getRversion() < "4.4.1") # 4.3.3 had issues
xs_data <- load_pop_data(
Expand Down
10 changes: 5 additions & 5 deletions vignettes/articles/scrubTyphus_example.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ knitr::opts_chunk$set(

```{r setup, message=FALSE}
install.packages("devtools")
devtools::install_github("ucd-serg/serocalculator", eval=FALSE)
devtools::install_github("ucd-serg/serocalculator", eval = FALSE)
```


Expand All @@ -53,9 +53,9 @@ The first step in conducting this analysis is to load our necessary packages. If
```{r load_packages}
library(serocalculator)
library(devtools)
install.packages("tidyverse", eval=FALSE)
install.packages("tidyverse", eval = FALSE)
library(tidyverse)
install.packages("mixtools", eval=FALSE)
install.packages("mixtools", eval = FALSE)
library(mixtools)
```

Expand Down Expand Up @@ -151,7 +151,7 @@ Column Name | Description

```{r message=FALSE, warning=FALSE}
# biologic noise
b.noise <- xs_data %>%
b_noise <- xs_data %>%
group_by(antigen_iso) %>%
filter(!is.na(value)) %>%
filter(age < 40) %>% # restrict to young ages to capture recent exposures
Expand Down Expand Up @@ -181,7 +181,7 @@ b.noise <- xs_data %>%
# define conditional parameters
noise <- data.frame(
antigen_iso = c("OT56kda_IgG", "OT56kda_IgM"),
nu = as.numeric(c(b.noise[2, 2], b.noise[1, 2])), # Biologic noise (nu)
nu = as.numeric(c(b_noise[2, 2], b_noise[1, 2])), # Biologic noise (nu)
eps = c(0.2, 0.2), # M noise (eps)
y.low = c(0.2, 0.2), # low cutoff (llod)
y.high = c(200, 200)
Expand Down

0 comments on commit 399fdf4

Please sign in to comment.