posit-dev / r-shinylive

https://posit-dev.github.io/r-shinylive/
Other
156 stars 16 forks source link

ShinyLive Export Error #76

Closed quincountychsmn closed 4 months ago

quincountychsmn commented 5 months ago

Good afternoon,

I have a working shinyLive application since January. I was updating it today in RStudio and tried to execute the following code (which seemed to work last week) shinylive::export(appdir = "Default Application", destdir = "docs"). However, I receive the following error. Did I miss an update or is this a known issue?

image

Thank you

gadenbuie commented 5 months ago

It looks like you may have installed the dev version of the httpuv package from GitHub recently? I think the first thing to try is to follow the instructions in the error message to install httpuv from CRAN and try exporting the app again. If that doesn't work, let us know!

quincountychsmn commented 5 months ago

Thank you for the reply.

I have been using the httpuv dev version since January. I'll run some tests tomorrow. I did try to load the httpuv library and run the export, but I still get the same error. More than likely its user error.

quincountychsmn commented 5 months ago

I was able to remove the dev package with pak::pkg_remove("rstudio/httpuv"). I am now using the CRAN versions for both shinyLive and httpuv.

I no longer receive the Github API error. However, now I get Error in normalizePath(path.expand(path), winslash, mustWork) : My Path: The system cannot find the file specified.

There are multiple discussions related to this error prior to r-shinyLive. Since I didn't receive this error previously, do you have any suggestions on where I should start? I have exported a shinyLive application successfully prior to the updates and deployed it here. However, it appears I need to update my process to meet the new ShinyLive requirements.

Thank you

Edit* This seemed to have done the trick. Remove httpuv and shinyLive packages. Use the CRAN shinyLive package and either the CRAN httpuv or dev httpuv version (I must have not been using the CRAN shinyLive version for my previous tests). Something in the ShinyLive asset 0.3.0 from the dev version seems to be associated with the error. ShinyLive asset 0.2.3 still works to export the directory for me. Sorry, this isn't very technical and probably is easy to figure out for more seasoned shiny users ; I started my shiny journey in September 2023. I'm going to try and get GitHub actions working since this seems to be the direction I need to learn. Keep up the great work. Feel free to close this issue. Thanks again