I'm trying to deploy a shiny app on shinyapps.io with RStudio.
It includes the package flipDimensionReduction
, installed from github.
I always get the same warning as follows:
Unable to determine the source location for some packages. Packages
should be installed from a package repository like CRAN or a version
control system. Check that options('repos') refers to a package
repository containing the needed package versions.
and the same error as follows:
...[omitted]...
[2023-01-22... ] Building R package: rhtmlMoonPlot (1.0.1)
/mnt/packages/build /mnt
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
there is no package called ‘htmlwidgets’
Calls: ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart
Execution halted
Warning in untar2(tarfile, files, list, exdir, restore_times) :
skipping pax global extended headers
installing to library ‘/opt/R/4.2.2/lib/R/library’
* installing *source* package ‘rhtmlMoonPlot’ ...
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
ERROR: lazy loading failed for package ‘rhtmlMoonPlot’
* removing ‘/opt/R/4.2.2/lib/R/library/rhtmlMoonPlot’
The package rhtmlMoonPlot
is used in a function in flipDimensionReduction
.
This error is reproduced by adding library(flipDimensionReduction)
(or library(rhtmlMoonPlot)
) to any app.R
and deploying it to shinyapps.
Any suggestions to avoid this error
Thanks in advance!