Skip to content

Latest commit

 

History

History
299 lines (242 loc) · 13.4 KB

README.md

File metadata and controls

299 lines (242 loc) · 13.4 KB

RStudio Demos

A repo containing links to my favourite RStudio demo repos and documentation

Content

Applications

Type Content Links
R Shiny Code | Solo View | Dashboard View
Python Streamlit Code | Solo View | Dashboard View
Python Dash Code | Solo View | Dashboard View
Python Dash multi-page Code | Solo View | Dashboard View
Python Bokeh ...
Python Shiny for Python ...

Documents

Type Content Links
R R Markdown Code | Solo View | Dashboard View
R Connect Widgets Code | Solo View | Dashboard View
R Quarto Code | Solo View | Dashboard View
R Blastula Code | Solo View | Dashboard View
Python Jupyter Notebook Code | Solo View | Dashboard View

APIs

Type Content Links
R Plumber API Code | Solo View | Dashboard View
R Plumber Tableau Code | Solo View | Dashboard View | Tableau Deployment
Python FastAPI Code | Solo View | Dashboard View
Python Flask ...
Python Flask Webapp Code | Solo View | Dashboard View
Python Vetiver Code

Pins

Type Content Links
R Pins Code | Solo View | Dashboard View
Python Pins ...

Projects

Bike share

The bike share demo:

Docs

Links to my most commonly reference documentation.

Architecture

Product

Connect

Package Manager

Cloud

General

Databricks

AWS

Azure

Pro Product Cheat Sheet

Workbench

# --------------------------
# Stop, Start, Status
# --------------------------
sudo systemctl start rstudio-server
sudo systemctl stop rstudio-server
sudo systemctl status rstudio-server
# Or... you can use the rstudio-server utility installed at /usr/bin 
# (https://docs.posit.co/ide/server-pro/reference/rstudio_server_cli.html)
sudo rstudio-server restart # start, stop, status, etc.

# --------------------------
# CLIs
# --------------------------
# https://docs.posit.co/ide/server-pro/reference/rstudio_server_cli.html
rstudio-server

# --------------------------
# Logs
# --------------------------
sudo tail -n 50 /var/log/rstudio/rstudio-server/rserver.log
sudo tail -n 50 /var/log/rstudio/rstudio-server/rserver-http-error.log
sudo tail -n 50 /var/log/rstudio/launcher/rstudio-launcher.log
sudo tail -n 50 ~/.local/share/rstudio/log
sudo journalctl # need to figure this one out

# --------------------------
# License Management
# --------------------------

# --------------------------
# User Management
# --------------------------

Connect

# --------------------------
# Stop, Start, Status
# --------------------------
sudo systemctl start rstudio-connect
sudo systemctl stop rstudio-connect
sudo systemctl restart rstudio-connect
sudo systemctl reload rstudio-connect # trigger a configuration reload
sudo systemctl status rstudio-connect

# --------------------------
# CLIs
# --------------------------
# See all CLIs
sudo ls -la /opt/rstudio-connect/bin
# Most common
sudo /opt/rstudio-connect/bin/migrate
sudo /opt/rstudio-connect/bin/usermanager
sudo /opt/rstudio-connect/bin/license-manager
sudo /opt/rstudio-connect/bin/rscadmin

# --------------------------
# Logs
# --------------------------
sudo tail -n 50 /var/log/rstudio/rstudio-connect/rstudio-connect.log
sudo tail -n 50 /var/log/rstudio/rstudio-connect/rstudio-connect.access.log
sudo tail -n 50 /var/log/rstudio/rstudio-connect/rstudio-connect.audit.log

# --------------------------
# License Management
# --------------------------
sudo /opt/rstudio-connect/bin/license-manager activate $PCT_KEY
sudo /opt/rstudio-connect/bin/license-manager status
sudo /opt/rstudio-connect/bin/license-manager deactivate

# --------------------------
# User Management
# --------------------------

Package Manager

# --------------------------
# Stop, Start, Status
# --------------------------
sudo systemctl start rstudio-pm
sudo systemctl stop rstudio-pm
sudo systemctl status rstudio-pm

# --------------------------
# CLIs
# --------------------------
# See all CLIs
sudo ls -la /opt/rstudio-pm/bin
# Most commmon
sudo /opt/rstudio-pm/bin/rspm
sudo /opt/rstudio-pm/bin/license-manager

# --------------------------
# Logs
# --------------------------
# Server logs
sudo tail -n 50 /var/log/rstudio/rstudio-pm/rstudio-pm.log
# Access logs
sudo tail -n 50 /var/log/rstudio/rstudio-pm/rstudio-pm.log
# Package service logs (not enalbed by default
sudo tail -n 50 /var/log/rstudio/rstudio-pm/rstudio-pm.service.log

# --------------------------
# License Management
# --------------------------
sudo /opt/rstudio-pm/bin/license-manager activate $PPM_KEY
sudo /opt/rstudio-pm/bin/license-manager status
sudo /opt/rstudio-pm/bin/license-manager deactivate

# --------------------------
# User Management
# --------------------------