Open giannianfuso opened 1 year ago
@giannianfuso I am assigning you token id CF8C0451BED84DFF553141A12B2BAAD5
. I will email you the associated API key aka secret for this token.
The plan is to have you use it deploy your app yourself to the UHC shinyappsio account and control any necesary redeployments or staging... etc. Once you are done with the deployment process and no longer need access to the UHC shinyappsio account just let me know and I will invalid your particular token.
You should recieve and email with a script ( as shown below). Just run it in your Rstudio console and it should connect your local Rstudio to the UHC Shinyappsio account; you can deploy as you do regularly just select the UHC account instead.
@giannianfuso just a note your token is invalided as we cleaned up tockens for 2024. Please reopen if you need a new one. Thanks!
Hi Ran,
Looks like I need a new token. Could you help set that up?
hey gianni. Sorry abotu that. I invalidated all tokens a few weeks ago.
I just made a new one and emailed you the secret. Will keep this issue open until your done with it.
Thanks!
When I try to publish, I get this error:
── Preparing for deployment ──────────────────────────────────────────────────── ✔ Re-deploying "Congress-Mortality" using "server: shinyapps.io / username: drexel-uhc" ℹ Looking up application with id "9339731"... ✔ Found application https://drexel-uhc.shinyapps.io/Congress-Mortality/ ℹ Bundling 24 files: '.Rprofile', 'app.R', 'CSS/Header.css', 'CSS/Home.css', 'CSS/NavbarPage.css', 'DoD_byEducCD_2.Rdata', 'DoD_byEducCD_absDisparity_2.Rdata', 'DoD_byRace2CD_2.Rdata', 'DoD_byRaceCD_2.Rdata', 'DoD_byRaceCD_absDisparity_2.Rdata', 'DoD_Maps_byCD_2.Rdata', 'HTML/FontAwesomeLoader.html', 'HTML/Footer.html', 'HTML/Header.html', 'HTML/Home.html', 'IMR_byCD_byRace_2.Rdata', 'IMR_byCD_byRace_absDisparity_2.Rdata', 'IMR_Maps_byCD_2.Rdata', …, 'www/favicon.ico', and 'www/logo.png' ℹ Capturing R dependencies from renv.lock Error in FUN(X[[i]], ...) : subscript out of bounds Calls:
... computePackageDependencies -> parseRenvDependencies -> unlist -> lapply In addition: Warning message: In packageDescription(name, lib.loc = lib_dir, encoding = "UTF-8") : no package 'markdown' was found Execution halted
Could this be an issue with the renviron file?
try deleting .Rproject from the repo then publishing. or moving your app into a child folder within your project. just publishyour app from somewhere without he .Rproject
file ... i remember it does strange things to shinyappsio.
It was already in a subfolder, but the app had its own project, which I deleted. Tried publishing again but it didn't work. There still is a ".Rproj.user" folder -- should I delete that?
okay. We are getting closer. Thanks for sharing that info.
Next steps is: dont open your shiyn app within an R project (as this activates renv); Shinyappsio uses packrat and if you deploy from a rstuido session that has an active renv it may cause issues. So try the following:
Now, when I do this, I am getting a new error:
Still get that error
where is your directory? show me your console.
getwd()
list.files()
delete the /rsconnect
folder and try publishing again
Still get the Forbidden error -- publish is greyed out
thanks for your patience gianni. A few more things:
.Rprofile
renv.lock
if it still doesn't work please snip the 'deploy' tab from Rstudio for me.
Unchecking those still does not let me click publish. Also, should it say publish to drexel uhc? I am only seeing publish from drexel uhc but to giannianfuso
And I do not currently have a deploy tab
Name
Gianni Anfuso
Job title
Research Fellow
Department
Urban Health Collaborative
Request type
Dashboard
Request description
I created a dashboard for a project on my own shinyapp account and now we are ready to move it over to the UHC account
Example
No response
Data
No response
Notes
No response