On windows os, I can easily install any package form the below command:
install.packages('package_name', dependencies = T)
But on Ubuntu, I usually get some error messages like
ERROR: configuration failed for package 'xyz'
Why do R package installations on Ubuntu lead to so many errors, even though the same commands in Windows's R rarely lead to errors?