-
Notifications
You must be signed in to change notification settings - Fork 57
Open
Description
rhub_setup() suggests to use argument gh_url that does not exist:
Open R in a directory that is not a git repo and attempt to run the setup:
> rhub::rhub_setup()
Setting up R-hub v2.
✖ Is the current directory part of an R package?
Error:
! The current directory is not part of an R package.
ℹ You can create an R package in the current directory if you run
`usethis::create_package('.')`.
ℹ Alternatively, if you want to use R-hub for a package that is already on GitHub,
supply the `gh_url` argument to `rhub_setup()`.
Type .Last.error to see the more details.
However, if I try to include gh_url it does not exist:
> rhub::rhub_setup(gh_url="https://github.com/package")
Error in rhub::rhub_setup(gh_url = "https://github.com/package") :
unused argument (gh_url = "https://github.com/package")
Sorry if I misunderstand something, but this seems to me like either misleading suggestions, or a missing implementation.
Note that the current behavior aligns with the current documentation.
> R.Version()
$platform
[1] "x86_64-pc-linux-gnu"
$arch
[1] "x86_64"
$os
[1] "linux-gnu"
$system
[1] "x86_64, linux-gnu"
$status
[1] ""
$major
[1] "4"
$minor
[1] "5.1"
$year
[1] "2025"
$month
[1] "06"
$day
[1] "13"
$`svn rev`
[1] "88306"
$language
[1] "R"
$version.string
[1] "R version 4.5.1 (2025-06-13)"
$nickname
[1] "Great Square Root"
> packageVersion("rhub")
[1] ‘2.0.1’
Metadata
Metadata
Assignees
Labels
No labels