Skip to content

Commit ad9817c

Browse files
committed
chore: include full version info in script output
1 parent 01f3054 commit ad9817c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/_functions_setup.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ pak_install <- function(...) {
3939
} else if (grepl("/", pkg)) {
4040
pkg_name <- basename(pkg)
4141
}
42-
v_pkg <- tryCatch(packageVersion(pkg_name), error = function(e) "???")
42+
v_pkg <- pkg_source_version(pkg_name)
4343

4444
cli::cli_inform("Installed {.strong {pkg_name}} v{v_pkg}")
4545
}

0 commit comments

Comments
 (0)