Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot publish Shiny application from Rstudio with Norwegian locale #792

Closed
paalhaugen opened this issue Mar 22, 2023 · 14 comments
Closed

Comments

@paalhaugen
Copy link

Previously send as support issue, filed again here.

I have a subscription to Shinyapps, and I have published some applications. However, I can no longer publish working apps to the site. I am using Rstudio RStudio 2022.12.0+353 "Elsbeth Geranium" Release (7d165dcfc1b6d300eb247738db2c7076234f6ef0, 2022-12-03) for Windows
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) RStudio/2022.12.0+353 Chrome/102.0.5005.167 Electron/19.1.3 Safari/537.36
And R version 4.2.2 (2022-10-31 ucrt) -- "Innocent and Trusting"
rsconnect version 0.8.29

The publication process starts but halts when using packrat. No error messages are given. The application appears on shinyapps.io as "Deploying" but nothing more happens.
I found some indications that it is related to my locale, but no luck in figuring out how to overcome the problem.

Below is an output from the deployment when I try to publish
image

As a side note, I also found this thread. I tried to follow the suggestions, however no luck for me so far….

Deploying Shiny app to shinyapps.io stops at: "Starting to perform package snapshot" - shiny / shinyapps.io - Posit Forum (rstudio.com)

Further, I tested the “Old Faithful” example a and I get the exact same result as when I try to publish my own application. I have tried this example both with all the code within one file, and to split the code into server.r and ui.r, but there seem to be no difference.

Finally, here is a snapshot from my session info from this morning. I updated to the latest version of Rstudio, but no difference in behaviour regarding publishing.
image

@aronatkins
Copy link
Contributor

Could you verify that you have installed the latest packrat (0.9.1)? It's not showing up in the sessionInfo().

install.packages("packrat")

Your problem also appears similar to #656, which should be resolved by some recent changes to locale handling.

remotes::install_github("rstudio/rsconnect")

@paalhaugen
Copy link
Author

Hi
I Installed the latest packrat version, but no changes to the functionality.

I installed the github version of rsconnect, and now the publish function in Rstudio does not work at all. Seems to have broken some functionalities in the program.

@hadley
Copy link
Member

hadley commented Mar 23, 2023

@paalhaugen do you mind trying to deploy the app with code? That will let us figure out if the dev version of rsconnect has fixed the problem. The code should be something like this:

rsconnect::deployApp("D:/Repos/Shiny apps/vikenco", server = "shinyapps.io",  appName = "vikenco")

And would you mind copying and pasting the error you see in RStudio so I can fix that problem?

Thanks!

@paalhaugen
Copy link
Author

paalhaugen commented Mar 24, 2023 via email

@paalhaugen
Copy link
Author

It is not possible to publish through Rstudio, but I can publish with code. When I publish with code I get the following warning:
Warning messages:
1: In Sys.setlocale("LC_CTYPE", ctype) :
OS reports request to set locale to "Norwegian Bokmål_Norway.utf8" cannot be honored
2: In Sys.setlocale("LC_CTYPE", loc) :
OS reports request to set locale to "Norwegian Bokmål_Norway.utf8" cannot be honored

Does this help?

@hadley
Copy link
Member

hadley commented Mar 24, 2023

Does RStudio give you an error message when you attempt to publish?

You can ignore those warnings about locale; I'm not sure what's causing them but they're not important.

@paalhaugen
Copy link
Author

No There is no error message, I behaves like earlier. Just stops at the packrat command.

However, I met some dificulties when trying to update some packages related to the "remotes::install_github("rstudio/rsconnect")" command

@hadley
Copy link
Member

hadley commented Mar 24, 2023

Hmmmm, maybe the update to rsconnect didn't succeeded, and the actual difference is between publishing from the IDE and publishing with code? Would you mind running packageVersion("rsconnect") to confirm which version of rsconnect you have?

@paalhaugen
Copy link
Author

paalhaugen commented Mar 24, 2023

This seems weird. R returns

packageVersion("rsconnect")
[1] �\u0080\u00980.8.29.9000�\u0080\u0099

@hadley
Copy link
Member

hadley commented Mar 24, 2023

That is weird. Can you try in a fresh R session? What version of R are you using?

@paalhaugen
Copy link
Author

Hi, sorry for the late reply.
I have restarted R and I get this output
packageVersion("Rsconnect"):
[1] '0.8.29.9000'

I am using R version 4.2.2

@hadley
Copy link
Member

hadley commented Oct 27, 2023

Hi @paalhaugen — are you still seeing this problem with the latest version of rsconnect?

@paalhaugen
Copy link
Author

@hadley Sorry for my late reply. I just tested, and everything works super. Thank you, Shiny for both R and Python is a dream to work with!!

@hadley
Copy link
Member

hadley commented Dec 20, 2023

Awesome, glad to hear that it's all working once more.

@hadley hadley closed this as completed Dec 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants