From 8f47085b1fd421b5243c25b52c80157b2a15049a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABlle=20Salmon?= Date: Wed, 19 Feb 2025 17:48:25 +0100 Subject: [PATCH] docs: update graph saving rec --- vignettes/igraph.Rmd | 2 +- vignettes/igraph_ES.rmd | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vignettes/igraph.Rmd b/vignettes/igraph.Rmd index 7b81e68a49..fbb1c38de7 100644 --- a/vignettes/igraph.Rmd +++ b/vignettes/igraph.Rmd @@ -309,7 +309,7 @@ g <- delete_vertex_attr(g, "gender") V(g)$gender ``` -If you want to save a graph in R with all the attributes use the R's standard function `dput()` function and retrieve it later with `dget()`. You can also just save the R workspace and restore it later. +If you want to save a graph in R with all the attributes use `saveRDS()` (and then `readRDS()` to retrieve it). ## Structural properties of graphs diff --git a/vignettes/igraph_ES.rmd b/vignettes/igraph_ES.rmd index a43d3da9a2..cc601c3701 100644 --- a/vignettes/igraph_ES.rmd +++ b/vignettes/igraph_ES.rmd @@ -321,7 +321,7 @@ g <- delete_vertex_attr(g, "gender") V(g)$gender ``` -Si quieres guardar un grafo en R con todos los atributos utiliza la función estándar de R `dput` y recupéralo más tarde con `dget`. También puedes simplemente guardar el espacio de trabajo de R y restaurarlo más tarde. +Si quieres guardar un grafo en R con todos los atributos utiliza la función `saveRDS()` (y `readRDS()` para recuperarlo más tarde). ## Propiedades estructurales de los grafos