Guys, I have written the code for my App and it is working pretty well in the RStudio on my computer. However, while trying to publish the app, the output in the Deploy tab is:
Preparing to deploy application...DONE
Uploading bundle for application: 3563494...Error in if (nchar(info$uname) > lengthLimit || nchar(info$grname) > lengthLimit) { :
missing value where TRUE/FALSE needed
Calls: <Anonymous> ... force -> bundleApp -> writeBundle -> detectLongNames
Execution halted
I have no idea where is the problem and how I can handle it,
thank you for your help
1 Like
I am also experiencing this:
devtools::install_github("richarddmorey/flexTeaching", ref="ver2", build_opts = "--no-multiarch")
rsconnect::deployDoc(here::here("inst/app/solve.Rmd"), appName = "flexTeach2test_solve", account = "richarddmorey", logLevel = "verbose")
yields:
----- Deployment log started at 2021-02-05 15:52:56 -----
Deploy command:
rsconnect::deployDoc(here::here("inst/app/solve.Rmd"), appName = "flexTeach2test_solve", account = "richarddmorey", logLevel = "verbose")
Session information:
R version 4.0.3 (2020-10-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19041)
Matrix products: default
locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C
[5] LC_TIME=English_United States.1252
attached base packages:
[1] stats graphics grDevices datasets utils methods base
other attached packages:
[1] rclipboard_0.1.3 flexTeaching_0.1 magrittr_2.0.1 flexdashboard_0.5.2 shiny_1.6.0
loaded via a namespace (and not attached):
[1] xfun_0.20 shinyjs_2.0.0 remotes_2.2.0 purrr_0.3.4
[5] testthat_3.0.1 htmltools_0.5.1.1 usethis_2.0.0 noah_0.1.0
[9] yaml_2.2.1 rlang_0.4.10 pkgbuild_1.2.0 R.oo_1.24.0
[13] later_1.1.0.1 glue_1.4.2 withr_2.4.1 R.utils_2.10.1
[17] sessioninfo_1.1.1 lifecycle_0.2.0 stringr_1.4.0 R.methodsS3_1.8.1
[21] devtools_2.3.2 htmlwidgets_1.5.3 memoise_2.0.0 evaluate_0.14
[25] knitr_1.31 callr_3.5.1 fastmap_1.1.0 httpuv_1.5.5
[29] ps_1.5.0 curl_4.3 Rcpp_1.0.6 xtable_1.8-4
[33] openssl_1.4.3 renv_0.12.5 promises_1.1.1 cachem_1.0.3
[37] desc_1.2.0 pkgload_1.1.0 jsonlite_1.7.2 mime_0.9
[41] fs_1.5.0 packrat_0.5.0 askpass_1.1 digest_0.6.27
[45] stringi_1.5.3 shinybusy_0.2.2 processx_3.4.5 rprojroot_2.0.2
[49] here_1.0.1 cli_2.3.0 tools_4.0.3 crayon_1.4.0
[53] ellipsis_0.3.1 rsconnect_0.8.16-9002 prettyunits_1.1.1 assertthat_0.2.1
[57] rmarkdown_2.6 rstudioapi_0.13 R6_2.5.0 compiler_4.0.3
Cookies:
[1] path name value secure expires
<0 rows> (or 0-length row.names)
GET /v1/applications/?filter=account_id:26575&filter=name:flexTeach2test_solve&count=100&offset=0 410ms
----- Bundle upload started at 2021-02-05 15:52:56 -----
[2021-02-05 15:52:56] Inferring App mode and parameters
[2021-02-05 15:52:56] Bundling app dir
[2021-02-05 15:52:57] Generate manifest.json
[WARNING] This document format requires a nonempty <title> element.
Defaulting to 'setup.utf8' as the title.
To specify a title, use 'title' in metadata or --metadata title="...".
[WARNING] This document format requires a nonempty <title> element.
Defaulting to 'sidebar_main.utf8' as the title.
To specify a title, use 'title' in metadata or --metadata title="...".
[WARNING] This document format requires a nonempty <title> element.
Defaulting to 'sidebar_solve.utf8' as the title.
To specify a title, use 'title' in metadata or --metadata title="...".
[2021-02-05 15:53:32] Writing Rmd index if necessary
[2021-02-05 15:53:32] Compressing the bundle
Error in if (nchar(info$uname) > lengthLimit || nchar(info$grname) > lengthLimit) { :
missing value where TRUE/FALSE needed
----- Deployment error -----
Error in if (nchar(info$uname) > lengthLimit || nchar(info$grname) > lengthLimit) { :
missing value where TRUE/FALSE needed
----- Error stack trace -----
Error during wrapup: length(max.lines) <= 1 is not TRUE
Error: no more error handlers available (recursive errors?); invoking 'abort' restart
aron
February 8, 2021, 1:39pm
3
Sorry about this! A recent change to the rsconnect
package is causing problems.
We have just made another update that should fix this issue. Could you install the most recent version and see if that lets you deploy?
remotes::install_github("rstudio/rsconnect")
1 Like
Getting this error again. Here's my code and session info:
devtools::install_github("richarddmorey/flexTeaching", ref="ver2", build_opts = "--no-multiarch")
library(dplyr)
dir(here::here("inst/app/"), recursive = TRUE, all.files = TRUE) %>%
tibble(fn = .) %>%
filter(!(basename(fn) %in% c("solve.Rmd"))) %>%
pull(fn) %>%
rsconnect::deployApp(
appDir = here::here("inst/app/"),
appName = "flexTeach2test_download", appFiles = .,
appPrimaryDoc = "download.Rmd",
account = "richarddmorey"
)
The output is as follows:
Preparing to deploy document...DONE
Uploading bundle for document: 3647328...[WARNING] This document format requires a nonempty <title> element.
Defaulting to 'content.utf8' as the title.
To specify a title, use 'title' in metadata or --metadata title="...".
[WARNING] This document format requires a nonempty <title> element.
Defaulting to 'setup.utf8' as the title.
To specify a title, use 'title' in metadata or --metadata title="...".
[WARNING] This document format requires a nonempty <title> element.
Defaulting to 'sidebar_main.utf8' as the title.
To specify a title, use 'title' in metadata or --metadata title="...".
[WARNING] This document format requires a nonempty <title> element.
Defaulting to 'sidebar_solve.utf8' as the title.
To specify a title, use 'title' in metadata or --metadata title="...".
Error in if (nchar(info$uname) > lengthLimit || nchar(info$grname) > lengthLimit) { :
missing value where TRUE/FALSE needed
In addition: Warning messages:
1: In yaml::yaml.load(yamlData) :
Evaluating R expressions (!expr) will soon require explicit `eval.expr` option (see yaml.load help)
2: In yaml::yaml.load(yamlData) :
Evaluating R expressions (!expr) will soon require explicit `eval.expr` option (see yaml.load help)
My session info:
> sessionInfo()
R version 4.0.3 (2020-10-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19041)
Matrix products: default
locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C
[5] LC_TIME=English_United States.1252
attached base packages:
[1] stats graphics grDevices datasets utils methods base
other attached packages:
[1] flexTeaching_0.1 magrittr_2.0.1 flexdashboard_0.5.2 shiny_1.6.0 dplyr_1.0.4
loaded via a namespace (and not attached):
[1] Rcpp_1.0.6 here_1.0.1 prettyunits_1.1.1 ps_1.5.0 assertthat_0.2.1
[6] rprojroot_2.0.2 digest_0.6.27 packrat_0.5.0 mime_0.10 R6_2.5.0
[11] noah_0.1.0 evaluate_0.14 pillar_1.4.7 rlang_0.4.10 curl_4.3
[16] rstudioapi_0.13 callr_3.5.1 R.utils_2.10.1 R.oo_1.24.0 rmarkdown_2.6
[21] shinyjs_2.0.0 desc_1.2.0 devtools_2.3.2 stringr_1.4.0 compiler_4.0.3
[26] httpuv_1.5.5 xfun_0.21 pkgconfig_2.0.3 askpass_1.1 pkgbuild_1.2.0
[31] htmltools_0.5.1.1 openssl_1.4.3 tidyselect_1.1.0 tibble_3.0.6 crayon_1.4.1
[36] withr_2.4.1 later_1.1.0.1 R.methodsS3_1.8.1 jsonlite_1.7.2 xtable_1.8-4
[41] lifecycle_1.0.0 stringi_1.5.3 cli_2.3.0 cachem_1.0.4 renv_0.12.5
[46] fs_1.5.0 promises_1.1.1 remotes_2.2.0 testthat_3.0.1 ellipsis_0.3.1
[51] vctrs_0.3.6 generics_0.1.0 tools_4.0.3 glue_1.4.2 purrr_0.3.4
[56] rsconnect_0.8.16-9002 processx_3.4.5 pkgload_1.1.0 fastmap_1.1.0 yaml_2.2.1
[61] sessioninfo_1.1.1 memoise_2.0.0 knitr_1.31 usethis_2.0.0
aron
February 17, 2021, 3:32pm
5
Hi, Richard. It looks as if you are not using the most recent rsconnect
package. The nchar(info$uname)
code was rewritten in the fix I mentioned earlier. Could you please install an updated version of the package and report your results?
remotes::install_github("rstudio/rsconnect")
oh, that's weird, I had updated it with install_github - assumed I had the most recent version. I'll retry.
Just tried to update - it appears I have the most recent version? When I try to update via install_github(), it says
Skipping install of 'rsconnect' from a github remote, the SHA1 (8c11a55b) has not changed since last install.
Use `force = TRUE` to force installation
and my sessionInfo() above lists the version rsconnect_0.8.16-9002
which according to https://github.com/rstudio/rsconnect/blob/master/DESCRIPTION is the latest version.
As far as I can tell, I do have the latest version.