Skip to content

Commit

Permalink
R version and package major update to 4.4.0 (#136)
Browse files Browse the repository at this point in the history
* Remove caching

* Update R packages in R 4.3.1

* Add bookdown_files to gitignore

* Explicitly add styler package

* Update R in git workflow to 4.4.0

* Add styler to renv

* Update packages for R 4.4.0
  • Loading branch information
szimmer authored Apr 30, 2024
1 parent b9f1b93 commit ecec950
Show file tree
Hide file tree
Showing 7 changed files with 405 additions and 304 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy_bookdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
lfs: True
- uses: r-lib/actions/setup-r@v2
with:
r-version: '4.3.1'
r-version: '4.4.0'
use-public-rspm: true
- uses: r-lib/actions/setup-pandoc@v2
- name: Set RENV_PATHS_ROOT
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# don't push local rendered files in master branch
_book/
_bookdown_files/
bookdown_files/
bookdown_cache/
libs/
*.log
Expand Down
1 change: 0 additions & 1 deletion 04-set-up.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,6 @@ Detailed information for these variables can be found in the [CPS data dictionar
```{r}
#| label: setup-anes-cps-get
#| message: false
#| cache: TRUE
cps_state_in <- getCensus(name = "cps/basic/mar",
vintage = 2020,
Expand Down
3 changes: 1 addition & 2 deletions 13-ncvs-vignette.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ We want to create four variables to indicate if an incident is a series crime.
```{r}
#| label: ncvs-vign-incfile
#| message: false
#| cache: TRUE
inc_series <- ncvs_2021_incident %>%
mutate(
series = case_when(V4017 %in% c(1, 8) ~ 1,
Expand Down Expand Up @@ -310,7 +310,6 @@ where $w_{ijk}$ is the person weight (`WGTPERCY`) for personal crimes or the hou

```{r}
#| label: ncvs-vign-merge-inc-sum
#| cache: TRUE
hh_z_list <- rep(0, ncol(inc_hh_sums) - 3) %>% as.list() %>%
setNames(names(inc_hh_sums)[-(1:3)])
Expand Down
2 changes: 2 additions & 0 deletions index.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ header-includes:

```{r setup}
#| include: false
library(styler)
options(
htmltools.dir.version = FALSE, formatR.indent = 2, digits = 4
)
Expand Down
Loading

0 comments on commit ecec950

Please sign in to comment.