Dear community,
I am finding it difficult to put online a shinyapp developed with the shinyMobile package.
I will report here the log of the shinyapp deploy process
Preparing to deploy application...DONE
Uploading bundle for application: 7866832...DONE
Deploying bundle: 6622887 for application: 7866832 ...
Waiting for task: 1255731667
building: Parsing manifest
building: Building image: 7813069
building: Installing system dependencies
building: Fetching packages
building: Building package: pak
building: Building package: npm
################################ Begin Task Log ################################
[2022-12-11T11:27:58.706245820+0000] Execute script: packages/build/gert.sh
+ set -e
++ lsb_release -cs
+ OS_CODENAME=focal
+ '[' focal == xenial ']'
+ apt-get update -qq
+ apt-get install -y libgit2-dev
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
libgcrypt20-dev libgit2-28 libgpg-error-dev libhttp-parser-dev
libhttp-parser2.9 libmbedcrypto3 libmbedtls-dev libmbedtls12 libmbedx509-0
libssh2-1-dev
Suggested packages:
libgcrypt20-doc libmbedtls-doc
The following NEW packages will be installed:
libgcrypt20-dev libgit2-28 libgit2-dev libgpg-error-dev libhttp-parser-dev
libhttp-parser2.9 libmbedcrypto3 libmbedtls-dev libmbedtls12 libmbedx509-0
libssh2-1-dev
0 upgraded, 11 newly installed, 0 to remove and 43 not upgraded.
Need to get 2668 kB of archives.
After this operation, 11.2 MB of additional disk space will be used.
Get:1 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal/main amd64 libgpg-error-dev amd64 1.37-1 [109 kB]
Get:2 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-updates/main amd64 libgcrypt20-dev amd64 1.8.5-5ubuntu1.1 [471 kB]
Get:3 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal/universe amd64 libhttp-parser2.9 amd64 2.9.2-2 [21.8 kB]
Get:4 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal/universe amd64 libmbedcrypto3 amd64 2.16.4-1ubuntu2 [150 kB]
Get:5 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal/universe amd64 libmbedx509-0 amd64 2.16.4-1ubuntu2 [42.3 kB]
Get:6 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal/universe amd64 libmbedtls12 amd64 2.16.4-1ubuntu2 [71.8 kB]
Get:7 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal/universe amd64 libgit2-28 amd64 0.28.4+dfsg.1-2 [403 kB]
Get:8 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal/universe amd64 libmbedtls-dev amd64 2.16.4-1ubuntu2 [444 kB]
Get:9 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal/universe amd64 libssh2-1-dev amd64 1.8.0-2.1build1 [244 kB]
Get:10 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal/universe amd64 libhttp-parser-dev amd64 2.9.2-2 [20.2 kB]
Get:11 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal/universe amd64 libgit2-dev amd64 0.28.4+dfsg.1-2 [691 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 2668 kB in 0s (25.8 MB/s)
Selecting previously unselected package libgpg-error-dev.
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 237921 files and directories currently installed.)
Preparing to unpack .../00-libgpg-error-dev_1.37-1_amd64.deb ...
Unpacking libgpg-error-dev (1.37-1) ...
Selecting previously unselected package libgcrypt20-dev.
Preparing to unpack .../01-libgcrypt20-dev_1.8.5-5ubuntu1.1_amd64.deb ...
Unpacking libgcrypt20-dev (1.8.5-5ubuntu1.1) ...
Selecting previously unselected package libhttp-parser2.9:amd64.
Preparing to unpack .../02-libhttp-parser2.9_2.9.2-2_amd64.deb ...
Unpacking libhttp-parser2.9:amd64 (2.9.2-2) ...
Selecting previously unselected package libmbedcrypto3:amd64.
Preparing to unpack .../03-libmbedcrypto3_2.16.4-1ubuntu2_amd64.deb ...
Unpacking libmbedcrypto3:amd64 (2.16.4-1ubuntu2) ...
Selecting previously unselected package libmbedx509-0:amd64.
Preparing to unpack .../04-libmbedx509-0_2.16.4-1ubuntu2_amd64.deb ...
Unpacking libmbedx509-0:amd64 (2.16.4-1ubuntu2) ...
Selecting previously unselected package libmbedtls12:amd64.
Preparing to unpack .../05-libmbedtls12_2.16.4-1ubuntu2_amd64.deb ...
Unpacking libmbedtls12:amd64 (2.16.4-1ubuntu2) ...
Selecting previously unselected package libgit2-28:amd64.
Preparing to unpack .../06-libgit2-28_0.28.4+dfsg.1-2_amd64.deb ...
Unpacking libgit2-28:amd64 (0.28.4+dfsg.1-2) ...
Selecting previously unselected package libmbedtls-dev:amd64.
Preparing to unpack .../07-libmbedtls-dev_2.16.4-1ubuntu2_amd64.deb ...
Unpacking libmbedtls-dev:amd64 (2.16.4-1ubuntu2) ...
Selecting previously unselected package libssh2-1-dev:amd64.
Preparing to unpack .../08-libssh2-1-dev_1.8.0-2.1build1_amd64.deb ...
Unpacking libssh2-1-dev:amd64 (1.8.0-2.1build1) ...
Selecting previously unselected package libhttp-parser-dev.
Preparing to unpack .../09-libhttp-parser-dev_2.9.2-2_amd64.deb ...
Unpacking libhttp-parser-dev (2.9.2-2) ...
Selecting previously unselected package libgit2-dev:amd64.
Preparing to unpack .../10-libgit2-dev_0.28.4+dfsg.1-2_amd64.deb ...
Unpacking libgit2-dev:amd64 (0.28.4+dfsg.1-2) ...
Setting up libgpg-error-dev (1.37-1) ...
Setting up libmbedcrypto3:amd64 (2.16.4-1ubuntu2) ...
Setting up libhttp-parser2.9:amd64 (2.9.2-2) ...
Setting up libhttp-parser-dev (2.9.2-2) ...
Setting up libmbedx509-0:amd64 (2.16.4-1ubuntu2) ...
Setting up libmbedtls12:amd64 (2.16.4-1ubuntu2) ...
Setting up libmbedtls-dev:amd64 (2.16.4-1ubuntu2) ...
Setting up libgcrypt20-dev (1.8.5-5ubuntu1.1) ...
Setting up libssh2-1-dev:amd64 (1.8.0-2.1build1) ...
Setting up libgit2-28:amd64 (0.28.4+dfsg.1-2) ...
Setting up libgit2-dev:amd64 (0.28.4+dfsg.1-2) ...
Processing triggers for libc-bin (2.31-0ubuntu9.9) ...
[2022-12-11T11:28:48.621758609+0000] Installing R package: KernSmooth (2.23-20)
* installing to library ‘/opt/R/4.2.0/lib/R/library’
* installing *binary* package ‘KernSmooth’ ...
* DONE (KernSmooth)
[2022-12-11T11:28:48.964794143+0000] Installing R package: R.methodsS3 (1.8.2)
* installing to library ‘/opt/R/4.2.0/lib/R/library’
* installing *binary* package ‘R.methodsS3’ ...
* DONE (R.methodsS3)
[2022-12-11T11:28:49.281239349+0000] Installing R package: R6 (2.5.1)
* installing to library ‘/opt/R/4.2.0/lib/R/library’
* installing *binary* package ‘R6’ ...
* DONE (R6)
[2022-12-11T11:28:49.611715206+0000] Installing R package: Rcpp (1.0.9)
* installing to library ‘/opt/R/4.2.0/lib/R/library’
* installing *binary* package ‘Rcpp’ ...
* DONE (Rcpp)
[2022-12-11T11:28:50.759068315+0000] Installing R package: XML (3.99-0.13)
* installing to library ‘/opt/R/4.2.0/lib/R/library’
* installing *binary* package ‘XML’ ...
* DONE (XML)
[2022-12-11T11:28:51.273521132+0000] Installing R package: assertthat (0.2.1)
* installing to library ‘/opt/R/4.2.0/lib/R/library’
* installing *binary* package ‘assertthat’ ...
* DONE (assertthat)
[2022-12-11T11:28:51.585512575+0000] Installing R package: base64enc (0.1-3)
* installing to library ‘/opt/R/4.2.0/lib/R/library’
* installing *binary* package ‘base64enc’ ...
* DONE (base64enc)
[2022-12-11T11:28:51.903239664+0000] Installing R package: bit (4.0.5)
* installing to library ‘/opt/R/4.2.0/lib/R/library’
* installing *binary* package ‘bit’ ...
* DONE (bit)
[2022-12-11T11:28:52.282458200+0000] Installing R package: bitops (1.0-7)
* installing to library ‘/opt/R/4.2.0/lib/R/library’
* installing *binary* package ‘bitops’ ...
* DONE (bitops)
[2022-12-11T11:28:52.600999521+0000] Installing R package: brew (1.0-8)
* installing to library ‘/opt/R/4.2.0/lib/R/library’
* installing *binary* package ‘brew’ ...
* DONE (brew)
[2022-12-11T11:28:52.941873252+0000] Installing R package: cli (3.4.1)
* installing to library ‘/opt/R/4.2.0/lib/R/library’
* installing *binary* package ‘cli’ ...
* DONE (cli)
[2022-12-11T11:28:53.348546765+0000] Installing R package: clipr (0.8.0)
* installing to library ‘/opt/R/4.2.0/lib/R/library’
* installing *binary* package ‘clipr’ ...
* DONE (clipr)
[2022-12-11T11:28:53.670793612+0000] Installing R package: commonmark (1.8.1)
* installing to library ‘/opt/R/4.2.0/lib/R/library’
* installing *binary* package ‘commonmark’ ...
* DONE (commonmark)
[2022-12-11T11:28:54.040800313+0000] Installing R package: cpp11 (0.4.3)
* installing to library ‘/opt/R/4.2.0/lib/R/library’
* installing *binary* package ‘cpp11’ ...
* DONE (cpp11)
[2022-12-11T11:28:54.421966134+0000] Installing R package: crayon (1.5.2)
* installing to library ‘/opt/R/4.2.0/lib/R/library’
* installing *binary* package ‘crayon’ ...
* DONE (crayon)
[2022-12-11T11:28:54.755200439+0000] Installing R package: curl (4.3.3)
* installing to library ‘/opt/R/4.2.0/lib/R/library’
* installing *binary* package ‘curl’ ...
* DONE (curl)
[2022-12-11T11:28:55.148385744+0000] Installing R package: digest (0.6.31)
* installing to library ‘/opt/R/4.2.0/lib/R/library’
* installing *binary* package ‘digest’ ...
* DONE (digest)
[2022-12-11T11:28:55.505287874+0000] Installing R package: evaluate (0.18)
* installing to library ‘/opt/R/4.2.0/lib/R/library’
* installing *binary* package ‘evaluate’ ...
* DONE (evaluate)
[2022-12-11T11:28:55.824124344+0000] Installing R package: fansi (1.0.3)
* installing to library ‘/opt/R/4.2.0/lib/R/library’
* installing *binary* package ‘fansi’ ...
* DONE (fansi)
[2022-12-11T11:28:56.170429676+0000] Installing R package: fastmap (1.1.0)
* installing to library ‘/opt/R/4.2.0/lib/R/library’
* installing *binary* package ‘fastmap’ ...
* DONE (fastmap)
[2022-12-11T11:28:56.518584360+0000] Installing R package: fs (1.5.2)
* installing to library ‘/opt/R/4.2.0/lib/R/library’
* installing *binary* package ‘fs’ ...
* DONE (fs)
[2022-12-11T11:28:56.909266513+0000] Installing R package: gitcreds (0.1.2)
* installing to library ‘/opt/R/4.2.0/lib/R/library’
* installing *binary* package ‘gitcreds’ ...
* DONE (gitcreds)
[2022-12-11T11:28:57.243973499+0000] Installing R package: glue (1.6.2)
* installing to library ‘/opt/R/4.2.0/lib/R/library’
* installing *binary* package ‘glue’ ...
* DONE (glue)
[2022-12-11T11:28:57.577041922+0000] Installing R package: gtools (3.9.4)
* installing to library ‘/opt/R/4.2.0/lib/R/library’
* installing *binary* package ‘gtools’ ...
* DONE (gtools)
[2022-12-11T11:28:57.920852494+0000] Installing R package: ini (0.3.1)
* installing to library ‘/opt/R/4.2.0/lib/R/library’
* installing *binary* package ‘ini’ ...
* DONE (ini)
[2022-12-11T11:28:58.240734962+0000] Installing R package: jsonlite (1.8.3)
* installing to library ‘/opt/R/4.2.0/lib/R/library’
* installing *binary* package ‘jsonlite’ ...
* DONE (jsonlite)
[2022-12-11T11:28:58.657192463+0000] Installing R package: magrittr (2.0.3)
* installing to library ‘/opt/R/4.2.0/lib/R/library’
* installing *binary* package ‘magrittr’ ...
* DONE (magrittr)
[2022-12-11T11:28:59.002040159+0000] Installing R package: mime (0.12)
* installing to library ‘/opt/R/4.2.0/lib/R/library’
* installing *binary* package ‘mime’ ...
* DONE (mime)
[2022-12-11T11:28:59.320110543+0000] Building R package: pak (0.3.1)
/mnt/packages/build /mnt
**** building pak dependency data, this can take several minutes
**** deps data (23): ..........10..........20...23
* installing to library ‘/opt/R/4.2.0/lib/R/library’
* installing *source* package ‘pak’ ...
** package ‘pak’ successfully unpacked and MD5 sums checked
** using staged installation
** R
** data
*** moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
*** copying figures
** building package indices
** testing if installed package can be loaded from temporary location
** checking absolute paths in shared objects and dynamic libraries
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* creating tarball
packaged installation of ‘pak’ as ‘pak_0.3.1_R_x86_64-pc-linux-gnu.tar.gz’
* DONE (pak)
/mnt
[2022-12-11T11:30:28.028900996+0000] Installing R package: pkgconfig (2.0.3)
* installing to library ‘/opt/R/4.2.0/lib/R/library’
* installing *binary* package ‘pkgconfig’ ...
* DONE (pkgconfig)
[2022-12-11T11:30:28.362854127+0000] Installing R package: prettyunits (1.1.1)
* installing to library ‘/opt/R/4.2.0/lib/R/library’
* installing *binary* package ‘prettyunits’ ...
* DONE (prettyunits)
[2022-12-11T11:30:28.688065753+0000] Installing R package: rappdirs (0.3.3)
* installing to library ‘/opt/R/4.2.0/lib/R/library’
* installing *binary* package ‘rappdirs’ ...
* DONE (rappdirs)
[2022-12-11T11:30:29.009381969+0000] Installing R package: rlang (1.0.6)
* installing to library ‘/opt/R/4.2.0/lib/R/library’
* installing *binary* package ‘rlang’ ...
* DONE (rlang)
[2022-12-11T11:30:29.438453169+0000] Installing R package: rprojroot (2.0.3)
* installing to library ‘/opt/R/4.2.0/lib/R/library’
* installing *binary* package ‘rprojroot’ ...
* DONE (rprojroot)
[2022-12-11T11:30:29.767596642+0000] Installing R package: rstudioapi (0.14)
* installing to library ‘/opt/R/4.2.0/lib/R/library’
* installing *binary* package ‘rstudioapi’ ...
* DONE (rstudioapi)
[2022-12-11T11:30:30.118409597+0000] Installing R package: sourcetools (0.1.7)
* installing to library ‘/opt/R/4.2.0/lib/R/library’
* installing *binary* package ‘sourcetools’ ...
* DONE (sourcetools)
[2022-12-11T11:30:30.479465388+0000] Installing R package: stringi (1.7.8)
* installing to library ‘/opt/R/4.2.0/lib/R/library’
* installing *binary* package ‘stringi’ ...
* DONE (stringi)
[2022-12-11T11:30:31.042871534+0000] Installing R package: sys (3.4.1)
* installing to library ‘/opt/R/4.2.0/lib/R/library’
* installing *binary* package ‘sys’ ...
* DONE (sys)
[2022-12-11T11:30:31.373552863+0000] Installing R package: utf8 (1.2.2)
* installing to library ‘/opt/R/4.2.0/lib/R/library’
* installing *binary* package ‘utf8’ ...
* DONE (utf8)
[2022-12-11T11:30:31.724509843+0000] Installing R package: whisker (0.4.1)
* installing to library ‘/opt/R/4.2.0/lib/R/library’
* installing *binary* package ‘whisker’ ...
* DONE (whisker)
[2022-12-11T11:30:32.058714530+0000] Installing R package: withr (2.5.0)
* installing to library ‘/opt/R/4.2.0/lib/R/library’
* installing *binary* package ‘withr’ ...
* DONE (withr)
[2022-12-11T11:30:32.395540061+0000] Installing R package: xfun (0.35)
* installing to library ‘/opt/R/4.2.0/lib/R/library’
* installing *binary* package ‘xfun’ ...
* DONE (xfun)
[2022-12-11T11:30:32.743421569+0000] Installing R package: xml2 (1.3.3)
* installing to library ‘/opt/R/4.2.0/lib/R/library’
* installing *binary* package ‘xml2’ ...
* DONE (xml2)
[2022-12-11T11:30:33.129064984+0000] Installing R package: xtable (1.8-4)
* installing to library ‘/opt/R/4.2.0/lib/R/library’
* installing *binary* package ‘xtable’ ...
* DONE (xtable)
[2022-12-11T11:30:33.493188526+0000] Installing R package: yaml (2.3.6)
* installing to library ‘/opt/R/4.2.0/lib/R/library’
* installing *binary* package ‘yaml’ ...
* DONE (yaml)
[2022-12-11T11:30:33.853490742+0000] Installing R package: zip (2.2.2)
* installing to library ‘/opt/R/4.2.0/lib/R/library’
* installing *binary* package ‘zip’ ...
* DONE (zip)
[2022-12-11T11:30:34.239005758+0000] Installing R package: R.oo (1.25.0)
* installing to library ‘/opt/R/4.2.0/lib/R/library’
* installing *binary* package ‘R.oo’ ...
* DONE (R.oo)
[2022-12-11T11:30:34.600194709+0000] Installing R package: bit64 (4.0.5)
* installing to library ‘/opt/R/4.2.0/lib/R/library’
* installing *binary* package ‘bit64’ ...
* DONE (bit64)
[2022-12-11T11:30:34.957174611+0000] Installing R package: caTools (1.18.2)
* installing to library ‘/opt/R/4.2.0/lib/R/library’
* installing *binary* package ‘caTools’ ...
* DONE (caTools)
[2022-12-11T11:30:35.294938938+0000] Installing R package: tzdb (0.3.0)
* installing to library ‘/opt/R/4.2.0/lib/R/library’
* installing *binary* package ‘tzdb’ ...
* DONE (tzdb)
[2022-12-11T11:30:35.808719972+0000] Building R package: npm (1.0.0.9000)
/mnt/packages/build /mnt
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
there is no package called ‘erratum’
Calls: <Anonymous> ... 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.0/lib/R/library’
* installing *source* package ‘npm’ ...
** using staged installation
** R
** byte-compile and prepare package for lazy loading
ERROR: lazy loading failed for package ‘npm’
* removing ‘/opt/R/4.2.0/lib/R/library/npm’
################################# End Task Log #################################
Errore: Unhandled Exception: Child Task 1255731669 failed: Error building image: Error building npm (1.0.0.9000). Build exited with non-zero status: 1
Esecuzione interrotta
The follow is the description file of my shinyapp
Package: shinymobile
Title: shinymobile
Version: 0.0.0.9000
Authors@R:
person("xxxx", "xxxx", , "xxx@xxx.com", role = c("cre", "aut"))
Description: This web application is to try to develop a shiny app for mobile
License: What license is it under?
Imports:
charpente,
config (>= 0.3.1),
digest,
golem (>= 0.3.5),
htmltools,
npm,
pak,
pkgload,
shiny (>= 1.7.3),
shinyMobile,
utils
Encoding: UTF-8
LazyData: true
RoxygenNote: 7.2.3
This is my server.R file
#' The application server-side
#'
#' @param input,output,session Internal parameters for {shiny}.
#' DO NOT REMOVE.
#' @import shiny
#' @noRd
app_server <- function(input, output, session) {
# Your application server logic
# On-Top Libraries
library(shiny)
# UI Libraries
library(shinyMobile)
# Server Libraries
library(charpente)
library(erratum)
library(npm)
library(digest)
}
and when i tried to use the following code to add to the description file the errantum package this is the output
usethis::use_package("errantum",
type = "Imports")
this is the output
ℹ The package `errantum` is required.
✖ Would you like to install it?
1: Yes
2: No
Selezione: 1
Error:
! error in pak subprocess
Caused by error:
! Cannot install packages:
* errantum: Can't find package called errantum.
Type .Last.error to see the more details.
but locally the errantum package is installed.
Can someone help me?