We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d4eb0a commit 4769cb0Copy full SHA for 4769cb0
tests/remotes.R
@@ -56,10 +56,12 @@ remote_remove(repo, "foobar")
56
57
stopifnot(identical(remotes(repo), character(0)))
58
59
-refs <- remote_ls("https://github.com/ropensci/git2r")
60
-stopifnot(length(refs) > 0)
61
-stopifnot(names(refs) > 0)
62
-stopifnot(any(names(refs) == "HEAD"))
+if (identical(Sys.getenv("NOT_CRAN"), "true")) {
+ refs <- remote_ls("https://github.com/ropensci/git2r")
+ stopifnot(length(refs) > 0)
+ stopifnot(names(refs) > 0)
63
+ stopifnot(any(names(refs) == "HEAD"))
64
+}
65
66
# an invalid URL should throw an error
67
tools::assertError(remote_ls("bad"))
0 commit comments