Skip to content

Commit

Permalink
set min R version to >= 3.2.0 (fixes #31)
Browse files Browse the repository at this point in the history
  • Loading branch information
cpauvert committed Oct 18, 2023
1 parent 6c42265 commit 40de9dc
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,5 @@ Encoding: UTF-8
Language: en-US
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.2.3
Depends:
R (>= 3.2.0)
12 changes: 12 additions & 0 deletions dev/0-dev_history.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,18 @@ devtools::build(vignettes = TRUE)
fusen::init_share_on_github()
```

# Depends on R version

It is best practice to specify a minimum R version, as the one set by default is the one from the developer: <https://blog.r-hub.io/2022/09/12/r-dependency/>

```{r}
# dir.exists requires R 3.2.0
# determined by lintr::lint_package(linters = backport_linter("3.2.0"))
# TODO: assess maldipickr dependencies and R versions
usethis::use_package("R", type = "Depends", min_version = "3.2.0")
```


# Manage dependencies

```{r dependencies, eval=FALSE}
Expand Down

0 comments on commit 40de9dc

Please sign in to comment.