dynamically add plots to web page using shiny

Perhaps this example due to Winston Chang is helpful: Shiny example app with dynamic number of plots Here is the full example just in case of linkrot: server.R max_plots <- 5 shinyServer(function(input, output) { # Insert the right number of plot output objects into the web page output$plots <- renderUI({ plot_output_list <- lapply(1:input$n, function(i) { … Read more

Operator “[

Rstudio’s behavior Rstudio’s object browser modifies objects it examines in a way that forces copying upon modification. Specifically, the object browser employs at least one R function whose call internally forces evaluation of the object, in the process resetting the value of the object’s named field from 1 to 2. From the R-Internals manual: When … Read more

Change R default library path using .libPaths in Rprofile.site fails to work

The proper solution is to set environment variable R_LIBS_USER to the value of the file path to your desired library folder as opposed to getting RStudio to recognize a Rprofile.site file. To set environment variable R_LIBS_USER in Windows, go to the Control Panel (System Properties -> Advanced system properties -> Environment Variables -> User Variables) … Read more