I would like to install the package plotly in RStudio and got a error message.
install.packages(\"~/Desktop/plotly_4.5.2.tar.gz\", repos = NULL, type = \"source\
I also faced a similar issue. I restarted the R session and reinstalled both packages.
install.packages("Rcpp") install.packages("plotly")
In my case, I was not able to load dplyr package. So, first I installed Rcpp package and then installed dplyr package. This solved my problem.