[R-pkg-devel] Error uploading file on CRAN

Ivan Krylov kry|ov@r00t @end|ng |rom gm@||@com
Wed Nov 30 13:56:36 CET 2022


В Wed, 30 Nov 2022 16:10:22 +0400
"Jahajeeah, Havisha" <hjahajeeah using utm.ac.mu> пишет:

> How do I fix this problem? Kindly advise.

I think I know what could be the problem.

Your run_app function calls shiny::shinyApp(ui, server, options =
list(launch.browser = TRUE)). Here, `ui` is an object of class
"shiny.tag". I think that the file paths get cached in the `ui` object
when the binary package is built, and when the package is run on a
different computer, the loading process fails.

Does it work if you run install.packages('Greymodels', type = 'source')?
If this works around the problem, you'll need to change the definition
of `ui` into a function to make sure it runs after the package is
installed: https://github.com/cran/Greymodels/blob/master/R/app_ui.R

-- 
Best regards,
Ivan



More information about the R-package-devel mailing list