I have encountered problem installing quantmod in my RStudio Ubuntu VM, which I need help in

I have encountered problem installing quantmod in my RStudio Ubuntu VM, which I need help in

Installation of quantmod need curl & TTR packages. You should do something like this.
install.packages("curl")
install.packages("TTR"")
install.packages("quantmod")
