The R Project SVN R-packages

Rev

Rev 7747 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7747 Rev 7851
Line 15... Line 15...
15
  by saving the corresponding XML content as a string
15
  by saving the corresponding XML content as a string
16
  and also the class of the object.
16
  and also the class of the object.
17
  The deserialize function converts such objects back to their
17
  The deserialize function converts such objects back to their
18
  original form.
18
  original form.
19
 
19
 
20
  These functions are used in calls to \code{\link[base]{saveRDS}}
20
  These functions are used in calls to \code{\link{saveRDS}}
21
  and \code{\link[base]{readRDS}} via the
21
  and \code{\link{readRDS}} via the
22
  \code{refhook} argument.
22
  \code{refhook} argument.
23
\code{
23
\code{
24
saveRDS(obj, filename, refhook = xmlSerializeHook)
24
saveRDS(obj, filename, refhook = xmlSerializeHook)
25
readRDS(filename, refhook = xmlDeserializeHook)
25
readRDS(filename, refhook = xmlDeserializeHook)
26
}  
26
}  
Line 48... Line 48...
48
\author{
48
\author{
49
Duncan Temple Lang
49
Duncan Temple Lang
50
}
50
}
51
 
51
 
52
\seealso{
52
\seealso{
53
\code{\link[base]{saveRDS}}  and \code{\link[base]{readRDS}}
53
\code{\link{saveRDS}}  and \code{\link{readRDS}}
54
}
54
}
55
\examples{
55
\examples{
56
z = newXMLNode("foo")
56
z = newXMLNode("foo")
57
f = system.file("exampleData", "tides.xml", package = "XML")
57
f = system.file("exampleData", "tides.xml", package = "XML")
58
doc = xmlParse(f)
58
doc = xmlParse(f)