remote: Character vector with the remotes to get the url from. Default is the remotes of the repository.
Returns
Character vector with remote_url for each of the remote
Examples
## Not run:## Initialize a temporary repositorypath <- tempfile(pattern="git2r-")dir.create(path)repo <- init(path)## Create a user and commit a fileconfig(repo, user.name="Alice", user.email="alice@example.org")writeLines("Hello world!", file.path(path,"example.txt"))add(repo,"example.txt")commit(repo,"First commit message")## Add a remoteremote_add(repo,"playground","https://example.org/git2r/playground")remotes(repo)remote_url(repo,"playground")## Rename a remoteremote_rename(repo,"playground","foobar")remotes(repo)remote_url(repo,"foobar")## Set remote urlremote_set_url(repo,"foobar","https://example.org/git2r/foobar")remotes(repo)remote_url(repo,"foobar")## Remove a remoteremote_remove(repo,"foobar")remotes(repo)## End(Not run)