# Create a vector of packages that you want to check for and install
required_packages <- c("shiny", "shinythemes", "DT")
# Function to check and install packages
check_and_install_packages <- function(packages) {
for(pkg in packages){
if (!require(pkg, character.only = TRUE)) {
install.packages(pkg)
library(pkg, character.only = TRUE)
}
}
}
# Use the function to check for and install any necessary packages
check_and_install_packages(required_packages)
# Then run your URL
runUrl("https://www.patrickbloniasz.com/wp-content/uploads/2022/02/morris-lecar-solver.zip")