Skip to content

Commit

Permalink
refactor: Remove "compatibility with S" and use of is.R() (#1168)
Browse files Browse the repository at this point in the history
  • Loading branch information
aviator-app[bot] authored Jan 29, 2024
2 parents 3626862 + f86e166 commit 45013a0
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions R/plot.R
Original file line number Diff line number Diff line change
Expand Up @@ -863,7 +863,7 @@ igraph.Arrows <-
open = TRUE,
sh.adj = 0.1,
sh.lwd = 1,
sh.col = if (is.R()) par("fg") else 1,
sh.col = par("fg"),
sh.lty = 1,
h.col = sh.col,
h.col.bo = sh.col,
Expand All @@ -875,11 +875,7 @@ igraph.Arrows <-
{
cin <- size * par("cin")[2]
width <- width * (1.2 / 4 / cin)
uin <- if (is.R()) {
1 / xyinch()
} else {
par("uin")
}
uin <- 1 / xyinch()
x <- sqrt(seq(0, cin^2, length.out = floor(35 * cin) + 2))
delta <- sqrt(h.lwd) * par("cin")[2] * 0.005 ## has been 0.05
x.arr <- c(-rev(x), -x)
Expand Down

0 comments on commit 45013a0

Please sign in to comment.