Check if Package is Missing and Install Automatically | R Programming Example | install.packages

preview_player
Показать описание
R code of this R tutorial:

my_packages <- c("Ac3net", "ACD", "acp") # Specify your packages

print(paste(length(not_installed), "packages had to be installed.")) # Print information to console
# "3 packages had to be installed."
Рекомендации по теме
Комментарии
Автор

Super handy!
Have one question about the line 5:
What is the role of: if(length(new.packages))

MahdiSafarpour
Автор

I am going to include "ACDC" in my version of "my_packages" Do you get it? HA HA ha ha! (thanks for your video!) 😂

theecanmole
visit shbcf.ru