Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

rstudio find out if package is installed

#Easy way to check if packages are already installed in RStudio
packages <- c("ggplot2", "dplyr", "Hmisc", "lme4", "arm", "lattice", "lavaan")
if (length(setdiff(packages, rownames(installed.packages()))) > 0) {
  install.packages(setdiff(packages, rownames(installed.packages())))  
}
Comment

PREVIOUS NEXT
Code Example
Shell :: raspberry clear cache 
Shell :: ubuntu run a shell script 
Shell :: android debug keystore windows 
Shell :: git bash terminal weird characters 
Shell :: create repository, commit, and push 
Shell :: unix vs linux 
Shell :: git submodule add 
Shell :: install express 
Shell :: composer add git repository 
Shell :: ffmpeg boost audio level 
Shell :: How do I make a Git commit in the past 
Shell :: react navigation install 
Shell :: bash how to convert text to lowercase or uppercase 
Shell :: linux unpack zip 
Shell :: supertest example 
Shell :: should mocha and chai be npm installed as dependencies or dev dependencies 
Shell :: remove folder from gitlab main branch repository 
Shell :: move all files from one directory to another 
Shell :: uninstall kde 
Shell :: how to merge branches github 
Shell :: linux kali 
Shell :: cloning repository github 
Shell :: How do I undo the most recent local commits in Git? 
Shell :: delete remote commit 
Shell :: install astropy anaconda 
Shell :: open directory windows command 
Shell :: bash variable execute 
Shell :: pytype 
Shell :: bower uninstall 
Shell :: xbox 360 wireless adapter linux 
ADD CONTENT
Topic
Content
Source link
Name
6+4 =