でーたさいえんすって何それ食えるの?

RとかPythonとかと戯れていたい

R import multiple packages at once

モチベーション

Rでlibrary()を打つ行数減らしたいよねー

e.g. ふつーなら

library(magrittr)
library(dplyr)
library(igraph)
library(data.frame)

一気にやりたいんで

libs <- c("magrittr", "dplyr", "igraph", "data.frame")
apply(libs, require, character.only = T)

User Input has better way

We know better and simple way.

list_options <- c("add an item",
                  "Delete an item",
                  "Print the list",
                  "Quit")

select.list(list_options)

source article

www.r-bloggers.com