Skip to content

Commit

Permalink
correct R.home() include and share paths
Browse files Browse the repository at this point in the history
  • Loading branch information
shikokuchuo committed Sep 5, 2024
1 parent 3fe8258 commit e01a9bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ Config/testthat/parallel: TRUE
Config/testthat/start-first: dll
Encoding: UTF-8
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.3.1
RoxygenNote: 7.3.2
4 changes: 2 additions & 2 deletions R/compilation-db.R
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,8 @@ compilers <- function() {
# These variables are normally set by frontends but just in case
env <- c(
"current",
R_INCLUDE_DIR = Sys.getenv("R_INCLUDE_DIR", unset = fs::path(R.home(), "include")),
R_SHARE_DIR = Sys.getenv("R_SHARE_DIR", unset = fs::path(R.home(), "share"))
R_INCLUDE_DIR = Sys.getenv("R_INCLUDE_DIR", unset = R.home("include")),
R_SHARE_DIR = Sys.getenv("R_SHARE_DIR", unset = R.home("share"))

Check warning on line 195 in R/compilation-db.R

View check run for this annotation

Codecov / codecov/patch

R/compilation-db.R#L194-L195

Added lines #L194 - L195 were not covered by tests
)

pkgbuild::with_build_tools(
Expand Down

0 comments on commit e01a9bc

Please sign in to comment.