R Under development (unstable) (2025-05-01 r88184 ucrt) -- "Unsuffered Consequences" Copyright (C) 2025 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > if (FALSE) { + + q("no") + Rdevel + + } > > library(xmlrpc2) > > > params <- list(1L, 1:3, rnorm(3), LETTERS[1:3], charToRaw("A")) > xml <- to_xmlrpc("some_method", params) > from_xmlrpc(xml) [[1]] [1] 1 [[2]] [[2]][[1]] [1] 1 [[2]][[2]] [1] 2 [[2]][[3]] [1] 3 [[3]] [[3]][[1]] [1] -0.2495907 [[3]][[2]] [1] 0.9333297 [[3]][[3]] [1] -0.3960647 [[4]] [[4]][[1]] [1] "A" [[4]][[2]] [1] "B" [[4]][[3]] [1] "C" [[5]] [1] 41 > > ## md <- as.Date(c("2007-06-22", "2004-02-13")) > ## rpc_serialize(md) > ## cat(as.character(rpc_serialize(md))) > ## > ## li <- list(1L, pi, "A") > ## rpc_serialize(li) > ## traceback() > ## > ## li <- list(1L, 2L, 3L) > ## rpc_serialize(li) > ## > ## li <- list(1L, 2L, 3L) > ## rpc_serialize(li) > ## > > proc.time() user system elapsed 0.26 0.09 0.29