devtools::build_readme fails with Error RStudio not running

I am running:
R version 4.5.2
devtools version 2.4.6
Rstudio version: 2025.09.2+418

when I run devtools::build_readme() is recieve an error message that Rstudio not running,

> devtools::build_readme()
ℹ Installing <package> in temporary library
Error in `(function (command = NULL, args = character(), error_on_status = TRUE, …`:
! System command 'Rcmd.exe' failed
---
Exit status: 1
Stdout & stderr:
Error: RStudio not running
Execution halted
---
Type .Last.error to see the more details.

there are two problems with this:

  1. devtools::build_readme should not depend on having Rstudio running
    and
  2. I am running this inside of Rstudio so there shouldn't be a problem anyway.

Nevermind, I figured out this issue. I made a mistake somewhere in my code. Admins feel free to delete this post.