Hi,
At least Leafviz can be installed and run under Windows 10 with some workarounds without trying to change code.
I what I did with a fresh install of R Windows 10 version 4.0.4 (2021-02-15) but no guarantees. Files are on the E: drive so ensure correct location and specification for Windows (no single backslash).
Installation:
1) Download and unzip the leafviz package from github.
2) Within R
> install.packages("remotes")
> remotes::install_local("E:/leafviz-master")
> install.packages("shinyjs")
Installing from github or zip archive fails:
"Error : (converted from warning) unable to re-encode 'utils.R' line 17"
This is due to 'improper' encoding of a greek symbol under my Windows install.
The shinyjs requirement appears to be missing somewhere in the setup.
Running:
This fails for me because of the error:
"Error in if (getOption("browser") == "") { : argument is of length zero"
As per manual, this is due to the correct return being NULL not an empty string!
"For getOption, the current value set for option x, or default (which defaults to NULL) if the option is unset."
Thus
> getOption("browser")
NULL
This is trivial to overcome within R with an appropriate RData file:
> infile="E:/example.RData"
> load(infile, envir = .GlobalEnv)
> shiny::runApp(launch.browser = TRUE, appDir = system.file("application", package = "leafviz"))
Bruce