This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(shiny) | |
library(gmailr) | |
ui <- fluidPage( | |
textInput("subj", "Subject", "Schedule change"), | |
textInput("text", "Message"), | |
actionButton("btn", "Send") | |
) | |
server <- function(input, output, session) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This script uploads all the FAST files to the taxonomer server (only one file can be uploaded at a time) | |
# Assumes that you have RSelenium package installed and that you've got a simple selenium example to work | |
if (FALSE) { | |
fastq_files <- c( | |
list.files(# WHERE ARE THE FILES?, pattern = "fastq.gz$", full.names = TRUE) | |
) | |
login_password <- "" # what is my password??? | |
library(RSelenium) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(shiny) | |
library(datasets) | |
Logged = FALSE; | |
PASSWORD <- data.frame(Brukernavn = "withr", Passord = "25d55ad283aa400af464c76d713c07ad") | |
# Define server logic required to summarize and view the selected dataset | |
shinyServer(function(input, output) { | |
source("www/Login.R", local = TRUE) | |
observe({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Disclaimer: I'm a noob at NSE and this implementation is just something I whipped up in 5 minutes at 3am. | |
# So if it's terrible, no judging! | |
library(shiny) | |
library(ggplot2) | |
ui <- fluidPage( | |
colourpicker::colourInput("col", "Select colour", "red"), | |
plotOutput("plot"), | |
verbatimTextOutput("code") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(shiny) | |
ui <- fluidPage( | |
tabsetPanel( | |
id = "maintabs", | |
tabPanel( | |
"tab1", | |
"Current time is", | |
textOutput("time_out", inline = TRUE) | |
), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(shiny) | |
ui <- fluidPage( | |
shinyjs::useShinyjs(), | |
# You have to include this one-liner CSS | |
tags$style(".fullwidth { width: 100% !important; }"), | |
# You need to wrap the sidebarLayout() by a div() and give it an ID | |
div(id = "SOMEID", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# I'm trying to let the user select points and paint them in a certain colour, and if the user clicks on a point then paint that point a different colour. | |
# It looks like the pointNumber and curveNumber data that plotly returns are different for the same points. I'm not sure how curveNumber works, but to me it doesn't make sense yet :) | |
# Any help is appreciated! | |
library(plotly) | |
library(shiny) | |
ui <- fluidPage( | |
plotlyOutput("plot") | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Clicking on a single point seems to clear the lasso selection. But the opposite is not true: doing a lasso selection still keeps the clicked point information. | |
# To reproduce: | |
# - Click a single point | |
# - Do a lasso selection | |
# - Both are currently visible | |
# - Click a different point | |
# - Now the lasso selection information is gone | |
# - Do a lasso selection again, both are visible again | |
library(shiny) |