### Bug description

This was encounter in https://community.rstudio.com/t/quarto-unable-to-locate-r-installation/144340/5

In some installation, it is possible that R defaults packages are not loaded. See https://stat.ethz.ch/R-manual/R-devel/library/base/html/Startup.html 

> If you want a different set of packages than the default ones when you start, insert a call to [options](https://stat.ethz.ch/R-manual/R-devel/library/base/help/options.html) in the ‘.Rprofile’ or ‘Rprofile.site’ file. For example, options(defaultPackages = character()) will attach no extra packages on startup (only the base package) (or set R_DEFAULT_PACKAGES=NULL as an environment variable before running R). Using options(defaultPackages = "") or R_DEFAULT_PACKAGES="" enforces the R system default.

Setting that and not loading **utils** will make Quarto fail the check 

https://github.com/quarto-dev/quarto-cli/blob/2430b604b7651f9d40ee98bdd7b479208290eac0/src/resources/capabilities/knitr.R#L10-L11

Reprex:

````powershell
# No ENV set 
> $env:R_DEFAULT_PACKAGES=$null
> quarto check knitr

(-) Checking R installation...........

[>] Checking R installation...........OK
      Version: 4.2.1
      Path: C:/PROGRA~1/R/R-42~1.1
      LibPaths:
        - C:/Users/chris/AppData/Local/R/win-library/4.2
        - C:/Program Files/R/R-4.2.1/library
      rmarkdown: 2.16.1

[>] Checking Knitr engine render......OK

# Setting the env var 
> $env:R_DEFAULT_PACKAGES="NULL"
> quarto check knitr

(-) Checking R installation...........

Error in `packageVersion()`:
! could not find function "packageVersion"
Backtrace:
    ▆
 1. ├─base::cat(...)
 2. └─base::paste0(...)
Execution halted
[>] Checking R installation...........(None)

      Unable to locate an installed version of R.
      Install R from https://cloud.r-project.org/
````

By just namespacing our usage of `packageVersion()` we could avoid that

```r
> Rscript --vanilla -e "packageVersion('rmarkdown')"
Error in packageVersion("rmarkdown") :
  could not find function "packageVersion"
Execution halted

> Rscript --vanilla -e "utils::packageVersion('rmarkdown')"
[1] '2.16.1'
```

cderv
2022-08-29T13:32:17Z
cderv
bug
closed
Correctly namespace usage of R default package functions like utils
https://github.com/quarto-dev/quarto-cli/issues/2187