@@ -2114,7 +2114,7 @@ sources on Windows without any additional tools.
21142114@subsection macOS
21152115
21162116On macOS @code {install.packages } works as it does on other Unix-alike
2117- systems, but there is an additional type @code {mac. binary } (available
2117+ systems, but there is an additional type @code {binary } (available
21182118for the @acronym {CRAN } distribution but not when compiling @R {} from
21192119source) which can be passed to @code {install.packages } in order to
21202120download and install binary packages from a suitable repository. These
@@ -2536,15 +2536,18 @@ wise to have a @file{src/contrib} area with a possibly empty
25362536@file {PACKAGES } file.
25372537
25382538@item
2539- @code {"win.binary" }: located at @file {bin/windows/contrib/ @var {x.y }} for
2540- @R {} versions @var {x.y.z } and containing @file {.zip } files for Windows.
2541-
2542- @item
2543- @code {"mac.binary" }: located at
2544- @file {bin/macosx/big-sur-arm64/contrib/ @var {4.y }} or
2545- @file {bin/macosx/big-sur-x86_64/contrib/ @var {4.y }} for the @acronym {CRAN }
2546- builds for macOS for @R {} versions @var {4.y.z }, containing @file {.tgz }
2547- files. (@file {bin/macosx/contrib/ @var {4.y }} for @code {@var {y }} = 0, 1 or 2.)
2539+ @code {"binary" }: binary packages are located under
2540+ @file {bin/ @var {os }/ @var {build }/contrib/ @var {x.y }} for @R {} versions
2541+ @var {x.y.z }, where @var {os } is either @file {windows } for Windows or
2542+ @file {macosx } for macOS and OS X. The @var {build } variable is defined
2543+ by the third part of the @code {type } value after @code {binary } and
2544+ may be empty. For example, in @R {} 4.4.1
2545+ @code {"mac.binary.big-sur-arm64" } specifies the
2546+ @file {bin/macosx/big-sur-arm64/4.4 } location, while
2547+ @code {"win.binary" } specifies @file {bin/windows/contrib/4.4 }. The
2548+ platform and build specification in @acronym {CRAN } @R {} binaries can
2549+ be obtained from @code {.Platform$pkgType }. Windows binary package
2550+ files use @file {.zip } extension while Mac files use @file {.tgz }.
25482551@end itemize
25492552
25502553Each terminal directory must also contain a @file {PACKAGES } file. This
0 commit comments