ITADN
r-hub/rhub/Issues

Message about non-existing argument `gh_url`

#662Openotoomet 创建于 2025-08-09
O
otoometcommented
`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’ ````
3 条评论