Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The description of the type argument in the documentation of the pkgDep() function is possibly confusing. #159

Open
indenkun opened this issue Nov 16, 2024 · 0 comments

Comments

@indenkun
Copy link

indenkun commented Nov 16, 2024

Dear Developers and Maintainers.

The type argument in the documentation of the pkgDep() function explains that

Possible values are (currently) "source", "mac.binary" and "win.binary": the binary types can be listed and downloaded but not installed on other platforms. Passed to download.packages().

If I follow this description and try to specify a binary package for macOS with type = ‘mac.binary, I get the following error.

miniCRAN::pkgDep("miniCRAN", type = "mac.binary")
#> Warning: unable to access index for repository https://cran.rstudio.com/bin/macosx/contrib/4.4:
#>   cannot open URL 'https://cran.rstudio.com/bin/macosx/contrib/4.4/PACKAGES'
#> Error: Unable to retrieve mac.binary package miniCRAN from https://cran.rstudio.com/

Of course, this can be solved by setting type = "mac.binary.big-sur-arm64" and so on, but this solution cannot be read from this document and is somewhat difficult for the novice user.

The type argument here is explained, for example, as follows,

Possible values are (currently) "source", "win.binary" and "mac.binary" or "mac.binary.*", where The last part of * is optional and currently only used on macOS to disambiguate builds targetting different macOS versions or architectures. Example values: "mac.binary.big-sur-arm64" for macOS 11 ( Big Sur) arm64 binaries. The binary types can be listed and downloaded but not installed on other platforms. Passed to download.packages().

and so on, would provide a solution.

Please consider.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant