Skip to content

Commit

Permalink
watchdog library path fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinushey committed Aug 14, 2023
1 parent f9b299d commit abe8125
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions R/watchdog.R
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,11 @@ renv_watchdog_start_impl <- function() {
script <- renv_scope_tempfile("renv-watchdog-", fileext = ".R")

# figure out library path -- need to dodge devtools::load_all()
library <- dirname(renv_namespace_path(.packageName))
if (!file.exists(file.path(library, "Meta/package.rds")))
library <- renv_libpaths_default()
nspath <- renv_namespace_path(.packageName)
library <- if (file.exists(file.path(nspath, "Meta/package.rds")))
dirname(nspath)
else
renv_libpaths_default()

# for R CMD check
name <- .packageName
Expand Down

0 comments on commit abe8125

Please sign in to comment.