This is used so that unit tests can override this using testthat::with_mock.

isWindows()