Read dot file or string
Read dot file or string
readDot(input = NULL, string = NULL, silent = FALSE)
input |
The name of a file containing dot connections. |
string |
A string of dot connections. |
silent |
Logical: Should warnings be suppressed? |
A data frame with the connections present in the input.
# 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"))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.