r-lib / pkgdown

Generate static html documentation for an R package
https://pkgdown.r-lib.org/
Other
713 stars 333 forks source link

Rsconnect folder created in docs/ after using rsconnect::deployApp #2214

Closed telphick closed 1 year ago

telphick commented 1 year ago

Hello,

Has anyone else experienced a folder named rsconnect being created in /docs after using rsconnect::deployApp? Is there a way to stop it being built? It seems to inhibit future building of the site as it is treated as if it should be built along with the rest of the site.

Code used currently: rsconnect::deployApp(appDir = "docs/", appPrimaryDoc = "index.html", server = 'server_here', appId = 'app_id_here')

TIA!

maelle commented 1 year ago

Were you deploying a pkgdown website? For more visibility of your question, you could also post on https://community.rstudio.com/

telphick commented 1 year ago

Were you deploying a pkgdown website? For more visibility of your question, you could also post on https://community.rstudio.com/

Hi, yes I was deploying a pkgdown website. Thanks for the link. I will also post in there

maelle commented 1 year ago

Posting the link to your post there for future reference https://community.rstudio.com/t/rsconnect-folder-created-when-using-rsconnect-deployapp/150234

maelle commented 1 year ago

was the problem solved?

tbowling87 commented 1 year ago

I recently hit a similar issue, found the recordDir parameter in rsconnect::deployApp could be used to change the location the rsconnect folder is created, allowing you to sidestep the issue