Skip to content

Instantly share code, notes, and snippets.

@lovetoken
Last active August 23, 2020 15:48
Show Gist options
  • Save lovetoken/16f862394a7f541faafde067cee0bf77 to your computer and use it in GitHub Desktop.
Save lovetoken/16f862394a7f541faafde067cee0bf77 to your computer and use it in GitHub Desktop.
새로운 R 환경에서 자주사용하는 Package 들을 한꺼번에 설치하고 로드하는 코드 (pacman package 를 사용하여)
# pacman 패키지가 설치되어 있어야 Gist 코드가 R에서 동작합니다. pacman 설치되어 있지 않다면 바로 아래 주석의 코드를 실행시켜서 pacman 패키지를 설치하세요. (온라인 상태이어야 하며, 주석을 해제하고 직접 실행해야 합니다.)
# install.packages("pacman")
# 현 Gist 에 올려진 R코드를 바로 실행하고 싶으시다면 아래 주석의 코드를 실행시키세요. (온라인 상태이어야 하며, 주석을 해제하고 직접 실행해야 합니다.)
# source("https://gist.githubusercontent.com/lovetoken/16f862394a7f541faafde067cee0bf77/raw/4c5ec3ff8b1ea8d1eaa9a058a3e227ff8152c2a9/R_packages_install_for_myself")
pacman::p_load(
aws.s3,
bigrquery,
BiocManager,
bit64,
bookdown,
broom,
bupaR,
caesar,
colourpicker,
data.table,
DBI,
devtools,
DiagrammeR,
DiagrammeRsvg,
dplyr,
DT,
edeaR,
eventdataR,
extrafont,
feather,
fst,
gargle,
gganimate,
ggplot2,
htmlwidgets,
httpuv,
jsonlite,
knitr,
lubridate,
magrittr,
patchwork,
plotly,
processanimateR,
processmapR,
purrr,
RCurl,
readr,
reshape2,
RODBC,
ROSE,
RPresto,
rsvg,
rvest,
scales,
sessioninfo,
sparklyr,
tidyquant,
tidyr,
tidyverse,
xml2
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment