Last updated on 2025-10-15 01:50:27 CEST.
Package | ERROR | OK |
---|---|---|
GephiForR | 3 | 10 |
Current CRAN status: ERROR: 3, OK: 10
Version: 0.1.0
Check: examples
Result: ERROR
Running examples in ‘GephiForR-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: rotate_layout
> ### Title: Rotate layout positions by a custom angle
> ### Aliases: rotate_layout
>
> ### ** Examples
>
>
> # Create a random graph
> library(igraph)
Attaching package: ‘igraph’
The following objects are masked from ‘package:stats’:
decompose, spectrum
The following object is masked from ‘package:base’:
union
> g <- erdos.renyi.game(100, 0.05)
>
> # Initializing position vector and plotting
> position <- as.matrix(data.frame(X = c(1, 2, 3), Y = c(4, 5, 6)))
> plot(g, layout = position)
Error in `plot()`:
! The layout has 3 rows, but the graph has 100 vertices.
ℹ It is recommended to store the layout as x and y vertex attributes and not as
a matrix graph attribute.
Backtrace:
▆
1. ├─base::plot(g, layout = position)
2. └─igraph::plot.igraph(g, layout = position)
3. └─cli::cli_abort(...)
4. └─rlang::abort(...)
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 0.1.0
Check: examples
Result: ERROR
Running examples in ‘GephiForR-Ex.R’ failed
The error most likely occurred in:
> ### Name: rotate_layout
> ### Title: Rotate layout positions by a custom angle
> ### Aliases: rotate_layout
>
> ### ** Examples
>
>
> # Create a random graph
> library(igraph)
Attaching package: ‘igraph’
The following objects are masked from ‘package:stats’:
decompose, spectrum
The following object is masked from ‘package:base’:
union
> g <- erdos.renyi.game(100, 0.05)
>
> # Initializing position vector and plotting
> position <- as.matrix(data.frame(X = c(1, 2, 3), Y = c(4, 5, 6)))
> plot(g, layout = position)
Error in `plot()`:
! The layout has 3 rows, but the graph has 100 vertices.
ℹ It is recommended to store the layout as x and y vertex attributes and not as
a matrix graph attribute.
Backtrace:
▆
1. ├─base::plot(g, layout = position)
2. └─igraph::plot.igraph(g, layout = position)
3. └─cli::cli_abort(...)
4. └─rlang::abort(...)
Execution halted
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc