Every package installation instruction starts with:
if (!requireNamespace("BiocManager", quietly = TRUE)) install.packages("BiocManager")
I