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:
[2023-01-22... ] Building R package: rhtmlMoonPlot (1.0.1)
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
there is no package called ‘htmlwidgets’
Calls: ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart
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
** 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’
rhtmlMoonPlotis used in a function in
This error is reproduced by adding
library(rhtmlMoonPlot)) to any
app.R and deploying it to shinyapps.
Any suggestions to avoid this error
Thanks in advance!