How to install Hmisc package? (Line 108(chunk 10) package 'Hmisc' could not be loaded)

I am trying to run the below code in R Studio. I am unable to install Hmisc package. You may ask me for more info about something and I will reply. Windows 11, R 4.3.2 and RStudio is the latest version, Here is the code:

install.packages("UsingR", repos = "http://cran.us.r-project.org")

install.packages("Hmisc", repos = "http://cran.us.r-project.org")

library("UsingR")

install.packages("tidyverse", repos = "http://cran.us.r-project.org")

library("tidyverse")

library("viridis")

The error:

(Line 108(chunk 10) package 'Hmisc' could not be loaded)

It looks like you are trying to us Hmisc in an Rmd file. Please run install.packages("Hmisc") and library(Hmisc) in the console and post all of the output here.