Skip to content

Commit

Permalink
Fixed issue with webshot2 dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
massimoaria committed May 28, 2024
1 parent 55401ad commit 0b1b34a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: bibliometrix
Type: Package
Title: Comprehensive Science Mapping Analysis
Version: 4.2.3
Version: 4.2.4
Authors@R: c(
person(given = "Massimo",
family = "Aria",
Expand Down
6 changes: 4 additions & 2 deletions inst/biblioshiny/libraries.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,15 @@ libraries <- function(){
## Currently "webshot2" 0.1.1 generates empty screenshots on windows 10 for graphics created with visnetwork.
## This workaround installs the previous version 0.1.0 to temporarily fix the problem.
if (!require(webshot2,quietly=TRUE)){
install.packages("https://cran.r-project.org/src/contrib/Archive/webshot2/webshot2_0.1.0.tar.gz", repos = NULL, type = "source")
install.packages("https://cran.r-project.org/src/contrib/Archive/webshot2/webshot2_0.1.0.tar.gz",
repos = NULL, type = "source", c("Depends", "Imports"))
}else{
pkgs <- installed.packages()[, "Version"]
vers <- pkgs["webshot2"]
if (vers!="0.1.0"){
detach("package:webshot2", unload = TRUE, force=TRUE)
install.packages("https://cran.r-project.org/src/contrib/Archive/webshot2/webshot2_0.1.0.tar.gz", repos = NULL, type = "source")
install.packages("https://cran.r-project.org/src/contrib/Archive/webshot2/webshot2_0.1.0.tar.gz",
repos = NULL, type = "source", c("Depends", "Imports"))
}
}
##
Expand Down

0 comments on commit 0b1b34a

Please sign in to comment.