List of user-installed R packages and their versions: This R command lists all the packages installed by the user (ignoring packages that come with R such as base and foreign) and the package versions.
ip <- as.data.frame(installed.packages()[,c(1,3:4)]) rownames(ip) <- NULL ip <- ip[is.na(ip$Priority),1:2,drop=FALSE] print(ip, row.names=FALSE)
Download R-3.4.1-win.exe, right-click on it and select Run as administrator.
When installing packages run R with right-click and select Run as administrator.