Using the Clean and Rebuild the /doc directory is not built in Rstudio

I'm using Rstudio with the following information:

RStudio 2022.02.3+492 "Prairie Trillium" Release (1db809b8323ba0a87c148d16eb84efe39a8e7785, 2022-05-20) for Windows
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/5.12.8 Chrome/69.0.3497.128 Safari/537.36

When I use the Clean and Rebuild function, I get the following results:

==> roxygen2::roxygenize('.', roclets = c('vignette'))

ℹ Loading IAPWS95
Updating vignettes
Documentation completed

==> Rcmd.exe INSTALL --preclean --no-multiarch --with-keep.source --no-lock --debug --no-clean-on-error --use-LTO IAPWS95

processing 'IAPWS95'
a directory
* installing to library 'C:/R/R-4.2.0/library'
* build_help_types=
* DBG: 'R CMD INSTALL' now doing do_install()
* installing *source* package 'IAPWS95' ...
staged installation is only possible with locking
** using non-staged installation
** libs
about to run R CMD SHLIB --preclean --use-LTO -o IAPWS95.dll IAPWS9521D.f90 IAPWS95_init.c --debug
gfortran  -fno-optimize-sibling-calls    -O2 -gdwarf-2 -mfpmath=sse -msse2 -mstackrealign  -c  IAPWS9521D.f90 -o IAPWS9521D.o
gcc  -I"C:/R/R-42~1.0/include" -DNDEBUG  -I'C:/R/R-4.2.0/library/Rcpp/include'   -I"C:/rtools42/x86_64-w64-mingw32.static.posix/include"     -O2 -Wall -gdwarf-2 -std=gnu99 -mfpmath=sse -msse2 -mstackrealign  -c IAPWS95_init.c -o IAPWS95_init.o
gcc -shared -static-libgcc -o IAPWS95.dll tmp.def IAPWS9521D.o IAPWS95_init.o -LC:/rtools42/x86_64-w64-mingw32.static.posix/lib/x64 -LC:/rtools42/x86_64-w64-mingw32.static.posix/lib -lgfortran -lm -lquadmath -LC:/R/R-42~1.0/bin/x64 -lR
installing to C:/R/R-4.2.0/library/IAPWS95/libs/x64
** R
** data
*** moving datasets to lazyload DB
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
**Warning in file(con, "w") :**
**  cannot open file 'C:/R/R-4.2.0/library/IAPWS95/doc/index.html': No such file or directory**
**Error in file(con, "w") : cannot open the connection**
**ERROR: installing vignettes failed**

Exited with status 1.

What is interesting is that the following is happening to the installation directory:
image

Notice that the /doc directory is not created?

When I install it using the command line in a shell, it works correctly and the /doc is created. I'd show an image but new users can upload only one image.

The same thing occurs if I use the devtools option.

Any thoughts as to what can be causing the issue?

Shawn Way