Closed Shoshana02 closed 11 months ago
Would you mind trying with the development versions of renv and rsconnect to see if that helps?
remotes::install_github("rstudio/renv")
remotes::install_github("rstudio/rsconnect")
Would you mind trying with the development versions of renv and rsconnect to see if that helps?
remotes::install_github("rstudio/renv") remotes::install_github("rstudio/rsconnect")
Thank you for your suggestion! I have updated the versions of renv and rsconnect. Unfortunately, I still received the same error.😭😭😭
Is it possible to share a project or more details about your project structure so we can recreate this problem?
In the meantime, you could use an older release of rsconnect:
remotes::install_version("rsconnect", "0.8.29")
Is it possible to share a project or more details about your project structure so we can recreate this problem?
In the meantime, you could use an older release of rsconnect:
remotes::install_version("rsconnect", "0.8.29")
It works!!! Thank you so much!!!
But, I wonder why it reported error with the latest version.... I still can not find the reason...
@kevinushey - any thoughts given the traceback seen here?
@Shoshana02 - Could you share more information about your project structure or how you are deploying? Are you using the RStudio IDE to push-button deploy, or are you calling rsconnect::deployApp
from the R console?
@Shoshana02 - Could you share more information about your project structure or how you are deploying? Are you using the RStudio IDE to push-button deploy, or are you calling
rsconnect::deployApp
from the R console?
I am calling rsconnect::deployApp
from the R console
Thank you!
@aronatkins just highlighting that I've been using this workaround of fixing the rsconnect package to version 0.8.29 too, though today that's now failing with an error saying the package is out of date.
We use a GitHub actions workflow for the deployments, todays deploy log can be found at https://github.com/dfe-analytical-services/childrens_social_services_offenders_dashboard/actions/runs/5936368104/job/16096633034
Let me know if any other information would be useful!
Hi @cjrace I actually just posted now https://github.com/rstudio/rsconnect/issues/970, I saw that the change was only made around 5 days ago and didn't think to go looking at this task but wanted to get a feeling for some other comments etc. I am reluctant to bump renv so high currently to what I am using as I have a suite of shiny applications that depend on it :(
The original problem reported by this issue is tracked by:
Folks can work around those "large directory" problems by setting the renv renv.config.dependencies.limit
option to mirror the value used for rsconnect.max.bundle.files
.
options(
renv.config.dependencies.limit = getOption('rsconnect.max.bundle.files', 10000)
)
If you customize rsconnect.max.bundle.files
, you will want to customize renv.config.dependencies.limit
to have the same value.
options(rsconnect.max.bundle.files = 10000, renv.config.dependencies.limit = 10000)
@cjrace Unfortunately, shinyapps.io and posit.cloud now require newer versions of rsconnect. By association, that also means you will need a newer version of renv.
The announcement of this change: https://community.rstudio.com/t/notice-posit-cloud-shinyapps-io-dropping-support-for-rsconnect-1-0-1/172078
I have reached out to the folks running shinyapps.io and posit.cloud to see if they can relax that restriction. For now, the version requirement is going to remain.
Closing this issue as a duplicate of https://github.com/rstudio/rsconnect/issues/968, which is now resolved in the development version of rsconnect.
Please open an issue if you encounter additional problems.
Sorry to trouble you Recently, I tried to redeploy a shiny app I had published (last update was 16/7/2023) with rsconnect version 1.0.0 and ran into the following error: ℹ Capturing R dependencies with renv Error in dirname(root) : a character vector argument expected
Then, I used
traceback()
it returned:I have checked that all the file paths are relative paths and the working directory is also the file directory where shinyapp is located. I have tried to deploy a copy shinyapp with creating a new Rproj. and the app's files copied; however, I received the same error.
Please let me know if there is more information you need, this is my first time posting an issue. Thank you so much!