Skip to content

Commit

Permalink
Rename cached variable for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
georgestagg committed Apr 17, 2024
1 parent fc9db77 commit c7a9092
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hooks/useWebR.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -274,11 +274,11 @@ webr::shim_install()
lapply(metadata, function(data) {
name <- data$name
path <- data$path
cached <- data$cached
available <- data$cached
mountpoint <- glue::glue("/shinylive/webr/packages/{name}")
# Mount the virtual filesystem image, unless we already have done so
if (cached && !file.exists(mountpoint)) {
if (available && !file.exists(mountpoint)) {
webr::mount(mountpoint, glue::glue("{.base_url}{path}"))
}
Expand Down

0 comments on commit c7a9092

Please sign in to comment.