test_that("write_graphml() works", {
tweet_df <- read_tweets(example_tweet_file())
tweet_g <- as_igraph(tweet_df, all_user_data = TRUE, all_status_data = TRUE)
temp_file <- tempfile(fileext = ".graphml")
expect_error(
write_graphml(tweet_g, temp_file),
NA
)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.