I hope this is not an issue specific to my machine/setup, but I have observed the following behavior. When quarto (via `quarto run`) is used to install the rmarkdown package on a windows machine, it seems to freeze up indefinitely. Other packages (e.g., magrittr) install fine via `quarto run`. 

Call: `quarto run code.R`

File `code.R`:

```
install.packages(pkgs = 'rmarkdown', character.only = TRUE, repos = 'http://cran.us.r-project.org', type = "win.binary")
```

The problem seems to occur at step 26 within `utils::install.packages`, specifically the call to ` .install.winbinary()`:
```
if (.Platform$OS.type == "windows") {
        if (startsWith(type, "mac.binary"))
            stop("cannot install macOS binary packages on Windows")
        if (type %in% "win.binary") {
            .install.winbinary(pkgs = pkgs, lib = lib, contriburl = contriburl,
                method = method, available = available, destdir = destdir,
                dependencies = dependencies, libs_only = libs_only,
                quiet = quiet, ...)
            return(invisible())
        }
        have_spaces <- grep(" ", pkgs)
        if (length(have_spaces)) {
            p <- pkgs[have_spaces]
            dirs <- shortPathName(dirname(p))
            pkgs[have_spaces] <- file.path(dirs, basename(p))
        }
        pkgs <- gsub("\\", "/", pkgs, fixed = TRUE)
    }
    else {
        if (startsWith(type, "mac.binary")) {
            if (!grepl("darwin", R.version$platform))
                stop("cannot install macOS binary packages on this platform")
            .install.macbinary(pkgs = pkgs, lib = lib, contriburl = contriburl,
                method = method, available = available, destdir = destdir,
                dependencies = dependencies, quiet = quiet, ...)
            return(invisible())
        }
        if (type %in% "win.binary")
            stop("cannot install Windows binary packages on this platform")
        if (!file.exists(file.path(R.home("bin"), "INSTALL")))
            stop("This version of R is not set up to install source packages\nIf it was installed from an RPM, you may need the R-devel RPM")
    }
```
Quarto version 1.1.189.
Output of `R.version`:
```
platform       x86_64-w64-mingw32               
arch           x86_64                           
os             mingw32                          
crt            ucrt                             
system         x86_64, mingw32                  
status                                          
major          4                                
minor          2.1                              
year           2022                             
month          06                               
day            23                               
svn rev        82513                            
language       R                                
version.string R version 4.2.1 (2022-06-23 ucrt)
nickname       Funny-Looking Kid 
```
2023-02-09T17:09:09Z
pecanka
closed
Quarto run freezes when used to install rmarkdown (via quarto run)
https://github.com/quarto-dev/quarto-cli/issues/4300