R-ps/0001-Don-t-run-example-that-uses-the-network.patch
Elliott Sales de Andrade e96baf5eb2 Update to latest version.
2020-10-10 04:06:13 -04:00

33 lines
946 B
Diff

From b547ef1de9a9c9ce2425fc8b5a64ff326a584464 Mon Sep 17 00:00:00 2001
From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
Date: Tue, 25 Feb 2020 21:16:57 -0500
Subject: [PATCH] Don't run example that uses the network.
Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
---
man/ps_connections.Rd | 2 ++
1 file changed, 2 insertions(+)
diff --git a/man/ps_connections.Rd b/man/ps_connections.Rd
index c77fffa..2392df6 100644
--- a/man/ps_connections.Rd
+++ b/man/ps_connections.Rd
@@ -32,12 +32,14 @@ For a zombie process it throws a \code{zombie_process} error.
}
\examples{
\dontshow{if (ps::ps_is_supported() && ! ps:::is_cran_check()) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
+\dontrun{
p <- ps_handle()
ps_connections(p)
sc <- socketConnection("httpbin.org", port = 80)
ps_connections(p)
close(sc)
ps_connections(p)
+}
\dontshow{\}) # examplesIf}
}
\seealso{
--
2.26.2