Open ntyndall opened 2 weeks ago
Have you tried populating missing packages in your DESCRIPTION file...
Have you tried populating missing packages in your DESCRIPTION file...
Thanks for the reply! So maybe I'm picking you up wrong - but I don't actually have any missing packages. I have them installed in my cache and sitting in ~/project/renv/library
. Without going totally off piste here, I have a combination of R 3.6.3 and RENV 0.13.2 installed and I can source
a file to deploy using rsconnect.. it only seems to be after bumping versions that I am running into this issue!
Try setting your code up in a package format using renv, then simply run rsconnect deployApp directly in console. That should work.
On 17 Jun 2024, at 16:43, Niall Tyndall @.***> wrote:
Have you tried populating missing packages in your DESCRIPTION file...
Thanks for the reply! So maybe I'm picking you up wrong - but I don't actually have any missing packages. I have them installed in my cache and sitting in ~/project/renv/library. Without going totally off piste here, I have a combination of R 3.6.3 and RENV 0.13.2 installed and I can source a file to deploy using rsconnect.. it only seems to be after bumping versions that I am running into this issue!
— Reply to this email directly, view it on GitHubhttps://github.com/rstudio/renv/issues/1923#issuecomment-2173747747, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AC32CP4M7BX2XROCXGP53EDZH37YDAVCNFSM6AAAAABJH4KTHGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZTG42DONZUG4. You are receiving this because you commented.Message ID: @.***>
I suspect you'll have better luck filing this at https://github.com/rstudio/rsconnect/issues, because (as far as I can see) this is more likely to be an issue with how rsconnect
is using renv
, rather than an issue in renv
itself.
That said, the output of:
renv::load()
renv::status()
or even
renv::diagnostics()
may be useful.
Hi,
I think this is partly my misunderstanding of how to deploy to shinyapps using rsconnect and renv.
I have a script called DEPLOY.R which is essentially just
I literally just open up Rstudio and call source('DEPLOY.R'), but I'm getting the following error with backtrace, am I missing setting some env variables or doing things in the wrong order?
I have tried running things like restore or snapshot in the script, but it just says lockfile is up to date or library is synchronized (as it should be). Note that if I open up the .Rproj file in Rstudio and run through the same code in DEPLOY.R then this works as expected and deploys successfully! OR if I open Rstudio and open the actual project and use source() then it also works. I suppose long story short I would want to be able to do something like
"Rscript.exe" -e "source('DEPLOY.R')"
from the command line..SessionInfo
Thank you!