Skip to content

Commit

Permalink
disable live vignette run
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchellmanware committed Jul 30, 2024
1 parent 49beb8f commit 7a0371d
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 11 deletions.
1 change: 1 addition & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,5 @@ jobs:
run: lintr::lint_package()
shell: Rscript {0}
env:
FILTER_REGEX_EXCLUDE: vignettes/workflow.Rmd
LINTR_ERROR_ON_LINT: true
43 changes: 32 additions & 11 deletions vignettes/workflow.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -58,28 +58,36 @@ temp_process <- process_covariates(
path = "./inst/extdata/air.2m"
)
```
```{r, echo = FALSE}
temp_process <- process_covariates(
covariate = "narr",
variable = "air.2m",
date = c("2021-12-28", "2022-01-03"),
path = system.file("extdata", "air.2m", package = "amadeus")
)
```

Check the `SpatVector` object.

```{r}
```{r, eval = FALSE}
temp_process
```
```{r, echo = FALSE}
cat(
"class : SpatRaster

Check warning on line 69 in vignettes/workflow.Rmd

View workflow job for this annotation

GitHub Actions / lint

file=vignettes/workflow.Rmd,line=69,col=0,[indentation_linter] Indentation should be 2 spaces but is 0 spaces.
dimensions : 277, 349, 7 (nrow, ncol, nlyr)
resolution : 32462.99, 32463 (x, y)
extent : -16231.49, 11313351, -16231.5, 8976020 (xmin, xmax, ymin, ymax)
coord. ref. : +proj=lcc +lat_0=50 +lon_0=-107 +lat_1=50 +lat_2=50 +x_0=5632642.22547 +y_0=4612545.65137 +datum=WGS84 +units=m +no_defs

Check warning on line 73 in vignettes/workflow.Rmd

View workflow job for this annotation

GitHub Actions / lint

file=vignettes/workflow.Rmd,line=73,col=81,[line_length_linter] Lines should not be more than 80 characters. This line is 135 characters.
sources : air.2m.2021.nc:air (4 layers)
air.2m.2022.nc:air (3 layers)
varnames : air (Daily Air Temperature at 2 m)
air (Daily Air Temperature at 2 m)
names : air.2~11228, air.2~11229, air.2~11230, air.2~11231, air.2~20101, air.2~20102, ...

Check warning on line 78 in vignettes/workflow.Rmd

View workflow job for this annotation

GitHub Actions / lint

file=vignettes/workflow.Rmd,line=78,col=81,[line_length_linter] Lines should not be more than 80 characters. This line is 96 characters.
unit : K, K, K, K, K, K, ...

Check warning on line 79 in vignettes/workflow.Rmd

View workflow job for this annotation

GitHub Actions / lint

file=vignettes/workflow.Rmd,line=79,col=81,[line_length_linter] Lines should not be more than 80 characters. This line is 96 characters.
time : 2021-12-28 to 2022-01-03 UTC\n"
)
```

## Calculate covariates

Calculate covariates for North Carolina county boundaries with `calc_covariates`.
County boundaries are accessed with the `tigris::counties` function.\insertRef{package_tigris}
`geom = TRUE` will return the covariates as a `SpatVector` object.

```{r}
```{r, eval = FALSE}
library(tigris)
temp_covar <- calc_covariates(
covariate = "narr",
Expand All @@ -91,6 +99,19 @@ temp_covar <- calc_covariates(
)
```

```{r}
```{r, eval = FALSE}
temp_covar
```
```{r, echo = FALSE}
cat(
"class : SpatVector

Check warning on line 107 in vignettes/workflow.Rmd

View workflow job for this annotation

GitHub Actions / lint

file=vignettes/workflow.Rmd,line=107,col=0,[indentation_linter] Hanging indent should be 4 spaces but is 0 spaces.
geometry : polygons
dimensions : 700, 3 (geometries, attributes)
extent : 7731783, 8506154, 3248490, 3694532 (xmin, xmax, ymin, ymax)
coord. ref. : +proj=lcc +lat_0=50 +lon_0=-107 +lat_1=50 +lat_2=50 +x_0=5632642.22547 +y_0=4612545.65137 +datum=WGS84 +units=m +no_defs

Check warning on line 111 in vignettes/workflow.Rmd

View workflow job for this annotation

GitHub Actions / lint

file=vignettes/workflow.Rmd,line=111,col=81,[line_length_linter] Lines should not be more than 80 characters. This line is 135 characters.
names : NAME time air.2m_0
type : <chr> <POSIXt> <num>
values : Chatham 2021-12-28 289.3
Alamance 2021-12-28 288.8
Davidson 2021-12-28 289.1\n")
```

Check warning on line 117 in vignettes/workflow.Rmd

View workflow job for this annotation

GitHub Actions / lint

file=vignettes/workflow.Rmd,line=117,col=1,[trailing_blank_lines_linter] Missing terminal newline.

0 comments on commit 7a0371d

Please sign in to comment.