pkg = readLines('http://www.leg.ufpr.br/~eder/pkgs.txt') install.packages(pkg, dep=TRUE) #pkg = installed.packages() #writeLines(pkg[,1], 'pkgs.txt')