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
| <VirtualHost *:80> | |
| RewriteEngine on | |
| <Proxy *> | |
| Allow from localhost | |
| </Proxy> | |
| <Location /> | |
| ## The following lines show an example using apache's simple auth module |
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
| #!/bin/bash | |
| RSPM_CLI=/opt/rstudio-pm/bin | |
| PRODUCTION = $RSPM_CLI list repos | grep -c production | |
| if [[ $PRODUCTION < 1 ]]; then | |
| echo "Creating repository 'production'" | |
| $RSPM_CLI create repo --name=production | |
| fi |
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
| --- | |
| title: "Check Users" | |
| output: html_document | |
| --- | |
| ```{r setup, include=FALSE} | |
| knitr::opts_chunk$set(echo = TRUE) | |
| get_all_users <- function(){ | |
| connectServer <- Sys.getenv("RSTUDIO_CONNECT_SERVER") | |
| apiKey <- Sys.getenv("RSTUDIO_CONNECT_API_KEY") |
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
| connectServer <- Sys.getenv("RSTUDIO_CONNECT_SERVER") | |
| apiKey <- Sys.getenv("RSTUDIO_CONNECT_API_KEY") | |
| # get user's list | |
| authHeader <- httr::add_headers(Authorization = paste("Key", apiKey)) | |
| apiPrefix <- "__api__/v1/users?page_size=50&account_status=licensed&user_role=publisher" | |
| resp <- httr::GET( | |
| paste0(connectServer, apiPrefix), | |
| authHeader |
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
| # devtools::install_github("rstudio/connectapi") | |
| library(connectapi) | |
| library(purrr) | |
| library(callr) | |
| library(webshot) | |
| library(glue) | |
| #' Check Shiny App | |
| #' |
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(stringr) | |
| library(purrr) | |
| library(dplyr) | |
| library(devtool) | |
| prohibit <- c( | |
| "EPL-1.0", | |
| "CDDL-1.1", | |
| "MPL-1.1", | |
| "CPL-1.0", | |
| "OTN_Dev", |
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
| source("helpers.R") | |
| plot_3d_route_area <- function(stream, zscale = 15){ | |
| # create bounding box for the ride | |
| ui("1 of 5: Locating Route...") | |
| bbox <- list( | |
| p1 = list(long = min(stream$lng), lat = min(stream$lat)), | |
| p2 = list(long = max(stream$lng), lat = max(stream$lat)) | |
| ) |
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
| FROM ubuntu:bionic | |
| ARG OS_IDENTIFIER=ubuntu-1804 | |
| ARG RSP_VERSION=1.2.1335-1 | |
| ARG RSP_PLATFORM=trusty | |
| ARG R_VERSION=3.5.2 | |
| ARG REPO_BASE=http://demo.rstudiopm.com/validated | |
| ARG REPO_PIN=1421 | |
| # Install the RSP bits for launcher |
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
| # --- BioC RSPM Installer ---- | |
| # This R script is designed to be run by a user on the RStudio Package | |
| # Manager server with access to the rspm command line utility | |
| # | |
| # The script loops through the R packages in the BioCsoft repository | |
| # and adds them to a RSPM source called bioc_version | |
| # | |
| # To run this script, call Rscript add_bioc.R "3.9" | |
| # Parse Inputs |