brew install python
Install virtualenv
. In terminal:
pip3 install virtualenv
virtualenv rTisane-env # rTisane-env is the name of the env
source rTisane-env/bin/activate
Now you're working in the virtualenv!
pip3 install dash
pip3 install dash_daq
pip3 install dash_bootstrap_components
pip3 install flask
pip3 install plotly
pip3 install tisanecodegenerator
pip3 install numpy
reticulate
install.packages("reticulate")
library(reticulate)
reticulate::use_virtualenv("./rTisane-env")
Check Python installation: reticulate::py_discover_config()
python, libpython, etc. should have a path
install.packages("devtools")
install.packages("magrittr")
install.packages("shinyjs")
install.packages("shiny")
install.packages("dagitty")
install.packages("igraph")
library(devtools)
library(magrittr) # for pipe %>%
library(shinyjs)
library(shiny)
library(dagitty)
library(igraph)
source("~/.Rprofile")
# Use local build of rTisane (under development)
devtools::load_all()
# For conceptual model disambiguation
source("conceptualDisambiguation/app.R")
==========
1. Install python. Note: Reticulate installs and uses miniconda from a path like "~/Library/r-miniconda-arm64"
install.packages("reticulate")
library(reticulate)
reticulate::install_miniconda()
# Help with install: https://github.com/rstudio/reticulate/issues/637
library(magrittr) # for pipe %>%
# For disambiguation
install.packages("shinyjs")
library(shinyjs)
library(shiny)
# Use local build of rTisane (under development)
library(devtools)
devtools::load_all()
# For conceptual model disambiguation
source("conceptualDisambiguation/app.R")
py_install("dash", pip=TRUE)
py_install("dash_daq", pip=TRUE)
py_install("dash_bootstrap_components", pip=TRUE)
py_install("flask", pip=TRUE)
py_install("plotly", pip=TRUE)
py_install("tisanecodegenerator", pip=TRUE)
py_install("pandas", pip=TRUE)
import("dash")
import("dash_daq")
import("dash_bootstrap_components")
import("flask")
import("plotly")
import("tisanecodegenerator")
import("pandas")
options(shiny.launch.browser = .rs.invokeShinyWindowExternal)
source("~/.Rprofile")
source("conceptualDisambiguation/app.R")
Follow instructions: https://support.posit.co/hc/en-us/articles/360023654474-Installing-and-Configuring-Python-with-RStudio
Create python virtualenv
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.