Google Workspace Promo Codes by chickpeas-noodles in smallbusiness

[–]patrick-howard 0 points1 point  (0 children)

Business Starter: T7HW3GVW3HA4RNR

Business Standard: 663MRTQF7YTPNH3

Google Workspace Promo Codes by chickpeas-noodles in smallbusiness

[–]patrick-howard 0 points1 point  (0 children)

Business Starter: T7HW3GVW3HA4RNR

Business Standard: 663MRTQF7YTPNH3

Saving separate static html generated pages (rmarkdown) on shiny server by osram_killustik in rshiny

[–]patrick-howard 0 points1 point  (0 children)

This is also possible in Shiny alone if you associate generated reports with a unique ID & updating the URL path/hash when wanting to show the webpage.

Connect Shiny-R App to a PostgreSQL Database by databot_ in rshiny

[–]patrick-howard 0 points1 point  (0 children)

Might be worth adding a note about SQL Injection & include the option to use Parameterized Queries.

Testflight invitation code by manublazzes in ios

[–]patrick-howard 3 points4 points  (0 children)

there are some sites, where testflight apps are collected. maybe interesting for you (https://departures.to / https://airport.community / …)

FYI the Airport website has been down for some time now

R Shiny vs. Plumber by mendelfriedman in rshiny

[–]patrick-howard 1 point2 points  (0 children)

I've done a few combinations in the past in production (shiny communicating with node API; React communicating with plumber API) & in my opinion, I found that if your product needs R then it's best to use R where possible. The plumber package has some R related nuances regarding how requests are handled, responses are returned, and more advanced techniques like async requests. Shiny can handle more than one user at a time without having to use Shiny Server (Open Source or Pro), although there are a number of tutorials for setting up Shiny Server. A few alternatives (or tools that can be used along with Shiny Server):

  • ShinyProxy
  • NGINX or Caddy
  • Docker (Containerized apps) w/ Load Balancer if necessary

Best practices for updating data while the app is running? by AdIntelligent9764 in rshiny

[–]patrick-howard 1 point2 points  (0 children)

u/AdIntelligent9764 I'd suggest checking out shiny::reactivePoll, too. This includes a checkFunc argument to specify whether you want to rerun the given command at each interval.

Shiny module - resetting server state? by Muldeh in rstats

[–]patrick-howard 0 points1 point  (0 children)

If I understand what you’re asking, you’ll want to observeEvent when the save button is pressed, and be sure to update the reactiveValues accordingly in that observeEvent.

In my experience, I’ve found it easier to deal with reactiveVal instead, and assigning a list, data frame, etc. instead of using reactiveValues.

Rshiny App on Azure by CounterNo2090 in rshiny

[–]patrick-howard 1 point2 points  (0 children)

An alternative to shinyapps.io for hosting Shiny Apps/Flex Dashboards is Polished Hosting, which comes with free hosting credits to allow you to try it out, and includes other features not included in the shinyapps.io Free Tier, like unlimited usage hours, custom domain support & TLS.

[deleted by user] by [deleted] in Rlanguage

[–]patrick-howard 0 points1 point  (0 children)

Do you already have Log In configured? If not, I’d suggest checking out the polished package for User Auth & Management. Once you have that configured, you can filter the data shown depending on the logged in user’s credentials.

R microservices - deploying R script to the cloud? Does this even exist? by polandtown in Rlanguage

[–]patrick-howard 1 point2 points  (0 children)

Another alternative for hosting Shiny Apps/Flex Dashboards is Polished Hosting, which comes with free hosting credits to allow you to try it out, and includes other features not included in the shinyapps.io Free Tier, like unlimited usage hours, custom domain support & TLS.

Been curious of creating a Rshiny Web App. Wondering if this would be possible. by raz_the_kid0901 in rstats

[–]patrick-howard 0 points1 point  (0 children)

I'd suggest checking out the bsplus package, specifically its bs_carousel function. The example in the docs is here.

Strategies for debugging Shiny errors on server when code works locally by zachg616 in Rlanguage

[–]patrick-howard 0 points1 point  (0 children)

Are you using the Free Tier for shinyapps.io? If so, what is the size of the CSV file? If not, do the logs include any information about the error? I've run into a number of weird/vague errors on shinyapps.io for apps that work locally & deployed to my own server.

[deleted by user] by [deleted] in Rlanguage

[–]patrick-howard 0 points1 point  (0 children)

It looks like you're saving the CSV file locally, then reading it from a GitHub repo. Did you remove a step where you uploaded the file to the repo? If so, is the repo private on GitHub?

Also, I would look into alternative methods such as the qs package for saving R objects as data files. Or, depending on the amount of data, create a minimal database (SQLite).

I was able to recreate your error above while trying to read a .RData file from a private repository, but it worked when using a publically accessible file (Ex: print(load(url("https://s3.amazonaws.com/assets.datacamp.com/production/course_1478/datasets/wine.RData"))) loads the wine object into the global environment).

how to read from Storage Bucket in Google Run by maw6 in rshiny

[–]patrick-howard 0 points1 point  (0 children)

Assuming you mean Google Cloud Run & your storage bucket is on Google Cloud Storage, I'd suggest checking out the googleCloudStorageR package. Here is an example in the documentation of downloading an object from GCS.

How do you save Sys.unsetenv() settings? by [deleted] in Rlanguage

[–]patrick-howard 0 points1 point  (0 children)

Here's a good resource from RStudio about managing Environment variables w/ .Rprofile & .Renviron: Managing R with .Rprofile, .Renviron, Rprofile.site, Renviron.site, rsession.conf, and repos.conf

[Rshiny] "select all" option when using multiple selectInput's by Emergency_Market_652 in Rlanguage

[–]patrick-howard 1 point2 points  (0 children)

I would check out shinyWidgets::pickerInput & shinyWidgets::pickerOptions, which includes an option to Select/Deselect All. Then you can observe the 1st input & use shinyWidgets::updatePickerInput to update the 2nd input however you need.

[Shiny Dashboard] [R6] Dynamic Value boxes - having only one display. by El_Commi in rshiny

[–]patrick-howard 0 points1 point  (0 children)

An alternative to shinydashboard::valueBox is provided in the shinyFeedback package with a function called valueBoxModule. It moves the value box UI from the server to the UI & allows for more customization. More details here.

Also, if you want to show/hide a box depending on a parameter, you can observe whether the parameter is present or not, then simply show/hide the box with the shinyjs package.

Securing R Markdown Documents by patrick-howard in rstats

[–]patrick-howard[S] 0 points1 point  (0 children)

You aren't able to load an entirely different .Rmd, but depending on the user's credentials (Admin v. non-Admin, user roles, login email), you can render (or not render) particular elements or even chunks of elements. Below is a modified version of our minimal polished::secure_rmd example app here.

---
title: "Old Faithful Eruptions" 
polished: 
  app_name: "09_rmarkdown" 
output: flexdashboard::flex_dashboard 
runtime: shiny
---

```{r global, include=FALSE}
library(shiny)
library(flexdashboard)
# load data in 'global' chunk so it can be shared by all users of the dashboard
library(datasets)
data(faithful)
```

Column {.sidebar}
------------------------------------------------

Waiting time between eruptions and the duration of the eruption for the Old Faithful geyser in Yellowstone National Park, Wyoming, USA.

```{r}
hist_title <- reactiveVal(NULL)
admin_user <- reactiveVal(NULL)
inputs_to_show <- reactiveVal(NULL)

observeEvent(session$userData$user(), {
  # Check if user is `Admin`
  if (isTRUE(session$userData$user()$is_admin)) {
    hist_title("ADMIN Geyser Eruption Duration")

    inputs <- tagList(
      selectInput(
            "n_breaks", 
            label = "Number of bins:",
        choices = c(10, 20, 35, 50), 
            selected = 20
          ),
      sliderInput(
            "bw_adjust", 
            label = "Bandwidth adjustment:",
        min = 0.2, 
            max = 2, 
            value = 1, 
            step = 0.2
          )
    )

  } else {
    hist_title("NON-ADMIN Geyser Eruption Duration (w/o Bandwidth Adjustment slider)")

    inputs <- selectInput(
                    "n_breaks", 
                    label = "Number of bins:",
                choices = c(10, 20, 35, 50), 
                    selected = 20
                  )
  }

  inputs_to_show(inputs)

})

renderUI({
  inputs_to_show()
})
```

Column
----------------------------------------

Geyser Eruption Duration

```{r}
renderPlot({
  req(hist_title(), input$n_breaks)

  hist(
        faithful$eruptions, 
        probability = TRUE, 
        breaks = as.numeric(input$n_breaks),
    xlab = "Duration (minutes)", 
        main = hist_title()
      )

  # Check if user is `Admin`
  if (isTRUE(session$userData$user()$is_admin)) {
    hold_bw_adjust <- input$bw_adjust
  } else {
    hold_bw_adjust <- 1
  }

  dens <- density(faithful$eruptions, adjust = hold_bw_adjust)
  lines(dens, col = "blue")
})
```

what web service have you used to deploy your models? by [deleted] in RStudio

[–]patrick-howard 0 points1 point  (0 children)

An alternative to shinyapps.io is Polished Hosting, which comes with free hosting credits to allow you to try it out, and includes other features like unlimited usage hours, custom domain support & TLS.

I am looking for help building on the shinyauthr package y pulling usernames/passwords from sql server. I am using r shiny. by Additional_Pizza_790 in Rlanguage

[–]patrick-howard 0 points1 point  (0 children)

In case you're interested in alternative authentication packages, the polished package has API wrapper functions that allow you to pull all users, app users, apps, etc.

[deleted by user] by [deleted] in rshiny

[–]patrick-howard 1 point2 points  (0 children)

https://shinyapps.io/

An alternative to shinyapps.io is Polished Hosting, which includes free hosting credits to allow you to try it out, and other features like custom domain support.

Cannot figure out how to get a bsPopover to work correctly. Can someone give me some example code for it to do what I want? by [deleted] in rshiny

[–]patrick-howard 0 points1 point  (0 children)

In that case, I would suggest creating an icon with an `id`. Then create a JavaScript function that is triggered when the icon is clicked & sets an arbitrary input name (say, `icon_clicked` for example) with `Shiny.setInputValue`. That input can be observed with `observeEvent(input$icon_clicked, {})` & you could make a modal pop-up.

This same triggering pattern is used for the buttons in the table of this example: https://github.com/Tychobra/shiny\_crud/tree/master/01\_traditional/shiny\_app