Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Log of install.packages()

Tags:

r

Does R by default store a log of the installation messages anywhere? If not, is there a way to have it log them on a file?

Sometimes I let R install various pacakges automatically, e.g.

install.packages("caret", dependencies=c("Depends", "Suggests"))

which can take hours and the installation log does not fit on the scroll buffer, so I can't see how the installation proceeded. It would be great if I can have R save this log somewhere (in addition to showing it on the terminal)

like image 825
Amelio Vazquez-Reina Avatar asked Mar 12 '13 00:03

Amelio Vazquez-Reina


People also ask

How do I list installed packages in R?

To see what packages are installed, use the installed. packages() command. This will return a matrix with a row for each package that has been installed.

What does the installed packages () function do?

The installed. packages() function shows a list of packages currently installed in an RStudio session. You can then locate the names of the packages and what's needed to use functions from the package.

What are install packages?

An installation package contains all of the information that the Windows Installer requires to install or uninstall an application or product and to run the setup user interface.

How do I see installed package progress in Salesforce?

Try to login to salesforce org and navigate to Quick Find ---> Installed Packages. You can find package details if it is installed sucessfully. If you see any error or package being not installed properly.


1 Answers

If you only need to know how the installation went (warnings and errors), the following may be sufficient for your needs:

sink("sink.txt")
install.packages("caret", dependencies=c("Depends", "Suggests"))
sink()
like image 104
sebastian-c Avatar answered Sep 16 '22 22:09

sebastian-c