readDot {actel} | R Documentation |
Read dot file or string
Description
Read dot file or string
Usage
readDot(input = NULL, string = NULL, silent = FALSE)
Arguments
input |
The name of a file containing dot connections. |
string |
A string of dot connections. |
silent |
Logical: Should warnings be suppressed? |
Value
A data frame with the connections present in the input.
Examples
# create dummy dot string
x1 <- c("A--B--C--D--E--F")
# run readDot
readDot(string = x1)
# more complex strings are acceptable:
x2 <- c(
"A--B--C--D--E--F
A--G--H--I--E
H--C")
readDot(string = x2)
# Alternatively, connections can be read from a file
# let's create a dummy file in R's temporary directory:
write("A--B--C--D--E--F\nA--G--H--I--E\nH--C\n",
file = paste0(tempdir(), "/dummy_dot.txt"))
# now we can read it using readDot
readDot(input = paste0(tempdir(), "/dummy_dot.txt"))
[Package actel version 1.3.0 Index]