unable to update htmltools to run shiny app

I'm struggling to get all the required packages updated and running for a shinyapp tutorial on my Mac. The latest issue when I try and run the sample code is the following:

shiny::runApp('~/Documents/my shiny apps/App-1')
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
namespace ‘htmltools’ 0.5.2 is already loaded, but >= 0.5.4 is required

So I ran variations of the following code:

packageVersion("htmltools") # confirms verion is 0.5.2
install.packages("htmltools", type = "binary")
update.packages("htmltools")
library(htmltools)
packageVersion("htmltools") # verion is still 0.5.2

The htmltools package isn't updating. Any idea what I'm doing wrong?

Hi @gawantang ,

which version of R are you using and whats the CRAN mirror you are using (you should see the download link when installing any package) ?

Like

install.packages("txtplot")

gives

Some text
https://packagemanager.rstudio.com/cran/latest/bin/windows/contrib/4.3/txtplot_1.0-4.zip