Cannot publish a Flex Dashboard project from R Studio to shinyapps.io after upgrading to 2022.07.2 Build 576 - r

From the Manage Accounts option of the Publish in RStudio I connect to my shinyapps.io account and click apply, then OK. Next, I click publish and get a dialog box for RStudio connect account. Before I upgraded, I did not get this option, I do not have the public URL of the RStudio connect server and I click cancel. I then click Publish and the Publish from list box has** no accounts connected** even though I connected to my shinnapps.io account from the manage accounts option. I have only been developing in R for a few weeks and would appreciate any suggestions to solve this issue.
A colleague suggested copying and pasting my code into a new template .rmd file and saving to a new location on my computer. You also can check to make sure runtime: shiny is in the YAML
These suggestions did not work, I got the same result.

Related

Push to Github Stuck on Rstudio

While I am trying to push on GitHUb from rstudio it is stuck and is not reflecting on Github
There might be some mismatch in the settings that I have configured watching tutorials.
Error Screenshot
Git Settings
Rstudio Options
GitHub Account Settings
Repository Settings
I was facing the same issue while following one of the courses online. I don't know exactly what causes this issue.
Problem: Exactly the same with every setting as shown in the screenshot.
The solution:
in RStudio, click on the "Tools" menu and select "Shell"
Run the following command: git push
it might ask you for your git username and password. Supply this
information, make sure it is correct
hopefully, the push is successful, then you can close the window
Now make some more edits to some files so that you have new content to
push
Click on the "push" button in RStudio and this time the push should
work
This is not my solution I found it here: https://stackoverflow.com/a/45804117/5677883

Flexdashboard shiny deployment with updating data

I deployed a flexdashboard shiny app to shinyapps.io, which worked fine. However, I want the dashboard to automatically update when the data file on google drive updates. What are my options for setting this up? I don't want to continously manually deploy a new version to shinyapps.io.
I was looking for the same, and I found the following :
Option #1 : you can try to connect to a data base using shinyapp.io
ref: https://docs.rstudio.com/shinyapps.io/applications.html
Option #2 : you can work with RStudio Connect
After doing some research, I would go with option 2, because :
you set up an environment to publish your dashboard.
you have the right environment to maintain, control and update the data.
The following article explains the steps to set up an environment to answer the need
source : https://medium.com/rstudio-connect-digest/basic-builds-how-to-update-data-in-a-shiny-app-on-rstudio-connect-48593902b1e2
The following article allows you to understand the difference between shinyapp.io and RStudio connect.
Initially I pusblished my dashboard in Shinyapp.io, buying a monthly licence, but now I realized RStudio Connect was a better choice.
To understand the difference, I am posting the following comparison:
https://support.rstudio.com/hc/en-us/articles/217240558-What-is-the-difference-between-RStudio-Connect-and-shinyapps-io-

Shiny server only allows one user at a time

I am hosting a shiny server on Ubuntu 16.04, and am using Ngnix for authentication. The server worked fine until recently it only stopped allowing multiple user use it at the same time. When a new user logs in, both the new user and the user currently using it will be kicked out, and whoever refresh the web page first will get in, and both users will be kicked out again once another person tries to get in. The screen will just grey out and "Disconnected from server" will show up in the bottom left corner.
There is no error in the log, the following will show up in the browser console. I haven't made any changes to the code in a long time, the only changes I made recently was updating R from 3.3 to 3.4 and R studio to the latest version last week. I also installed the latest version of shiny server after encountering this problem.
Any help will be much appreciated!
Thanks.
EDIT: I updated all the packages and removed all database connections, still no luck. I also tried a simple shiny app, which works for multiple users, so the problem should be with my shiny server. However, I haven't made any changes to my code for a month already. The latest log I checked had this line at the botton:
8066 Segmentation fault (core dumped) R --no-save --slave -f /opt/shiny-server/R/SockJSAdapter.R

SQLite file's location Windows 10 Universal App

I'm working with SQLite and Windows 10.
I followed this video SQLite Local Database (28th minute) to find the package and .sqlite file. But when I entered AppData/Local/Packages, I didn't find any package has the same name as my project's package's name.
Can anyone help me find the package folder of windows 10 app project? Thank a lot!
Try following steps:
WIN menu -> all apps -> right click on your app (App1 in your case) -> click uninstall. This will clear the previous app data.
In Visual Studio, right click on the project node -> Deploy.
Try to find and run your app from the app list to make sure it deployed correctly. then check if you can find the folder. This time you can easily find the folder by sorting on modified date.
If it still doesn't work, see if you can repro the issue with a new blank project.
[Update]
If the app locates on phone or phone emulator, Use Windows Phone Power Tools (works for windows 10) to browse folders. Here is a screenshot for your reference:

Shiny (Rstudio) apps not working

I am working on the Shiny tutorial for RStudio. I updated my RStudio, as indicated in the tutorial. The current version I have is 0.98.945. When I run the supplied examples like runExample("01_hello"), it opens my web browser and shows all the HTML content, but does not seem to be processing the R code.
When I proceed further in the tutorial for creating my own app runApp("App-1"), I get an error message on the web page: ERROR: could not find function "fluidPage". After some sleuthing, I found a posting on another site indicating that I need to download the developer version of shiny from GitHub, found here. I ran the code snippet for that installation -- and still no luck. Any suggestions would be greatly appreciated!
After updating Rstudio to the newest version redo the install.packages("shiny") and library("shiny"). Once you do this it should eliminate the need to manually do the runApp code and a button should appear were the run button usually is that says run app. before you can click run app though you have to set your working directory to the location were you have saved your server.R and ui.R by going to session -> set working directory -> choose directory. chose the folder location then click run app.
Edit: there should be no need for you to run that code from GitHub
I had the same problem. After installing shiny, I had to restart Rstuido for the "Run App" button to appear.
I had also some wired troubles when starting using shiny. Finally I got all fixed by removing all my previous libraries and installations and re-install only the latest versions

Resources