I am trying to pass a variable to install.package,library, ls and ? Passing a variable to install.package works fine, but I get an error for the others.
name1 <- as.character("dplyr")
install.packages(name1)
library(name1)
ls(name1)
?name1
I would be greatfull for your help.