From 73b3b855dbfe9f4943b93428f3d682c81683065b Mon Sep 17 00:00:00 2001 From: Barret Schloerke Date: Tue, 30 Jul 2024 13:41:17 -0400 Subject: [PATCH] fix: Missing `pkg` variable (#113) --- R/packages.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/R/packages.R b/R/packages.R index ca450fb..5b42849 100644 --- a/R/packages.R +++ b/R/packages.R @@ -11,7 +11,7 @@ resolve_dependencies <- function(pkgs, local = TRUE) { unique(inst$get_resolution()$package) } -check_repo_pkg_version <- function(desc, ver) { +check_repo_pkg_version <- function(desc, ver, pkg) { # Show a warning if packages major.minor versions differ # We don't worry too much about patch, since webR versions of packages may be # patched at the repo for compatibility with Emscripten @@ -38,7 +38,7 @@ get_wasm_assets <- function(desc, repo) { } ver <- info[pkg, "Version", drop = TRUE] - check_repo_pkg_version(desc, ver) + check_repo_pkg_version(desc, ver, pkg) list( list(