Installation Error using RStudio related to package "digest"

install.packages(“plotly”)
Installing package into ‘C:/Users/Melissa/Documents/R/win-library/3.3’
(as ‘lib’ is unspecified)
also installing the dependency ‘digest’

trying URL ‘https://cran.rstudio.com/bin/windows/contrib/3.3/digest_0.6.10.zip
Content type ‘application/zip’ length 169660 bytes (165 KB)
downloaded 165 KB

trying URL ‘https://cran.rstudio.com/bin/windows/contrib/3.3/plotly_4.5.2.zip
Content type ‘application/zip’ length 812729 bytes (793 KB)
downloaded 793 KB

package ‘digest’ successfully unpacked and MD5 sums checked
Warning in install.packages :
cannot remove prior installation of package ‘digest’
package ‘plotly’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
C:\Users\Melissa\AppData\Local\Temp\Rtmpeuzp60\downloaded_packages

library(plotly)
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
there is no package called ‘digest’
Error: package or namespace load failed for ‘plotly’
remove.packages(digest)
Error in remove.packages : object ‘digest’ not found
remove.packages(“digest”)
Removing package from ‘C:/Users/Melissa/Documents/R/win-library/3.3’
(as ‘lib’ is unspecified)
Error in remove.packages : there is no package called ‘digest’
install.packages(“digest”)
Installing package into ‘C:/Users/Melissa/Documents/R/win-library/3.3’
(as ‘lib’ is unspecified)
trying URL ‘https://cran.rstudio.com/bin/windows/contrib/3.3/digest_0.6.10.zip
Content type ‘application/zip’ length 169660 bytes (165 KB)
downloaded 165 KB

package ‘digest’ successfully unpacked and MD5 sums checked
Warning in install.packages :
cannot remove prior installation of package ‘digest’

The downloaded binary packages are in
C:\Users\Melissa\AppData\Local\Temp\Rtmpeuzp60\downloaded_packages

library(digest)
Error in library(digest) : there is no package called ‘digest’