Displaying 3 results from an estimated 3 matches for "writeitem".
Did you mean:
writeimm
2014 Feb 03
1
String Vector Encoding
Hello,
I was reading through serialize.c and i couldn't answer something.
In readItem, case CHARSXP, rules exists to adjust the read string for
string encoding.
Q1. I couldn't find where the encoding of the elements of the string vector
are written? Is it when writeItem writes out the attributes of the item?
But i couldn't find encoding in the attributes field
x <- "fa\xE7ile"
Encoding(x) <- "latin1"
xx <- iconv(x, "latin1", "UTF-8")
y=c(x,xx)
attributes(y)
NULL
Apologies if this has been asked before
Regar...
2023 May 02
1
save.image Non-responsive to Interrupt
...R also needs to check for interrupts
while saving sufficiently long vectors.
Since the serialize() infrastructure is carefully written to avoid
resource leaks on allocation failures, it looks relatively safe to
liberally sprinkle R_CheckUserInterrupt() where it makes sense to do
so, i.e. once per WriteItem() (which calls itself recursively and
non-recursively) and once per every downstream for loop iteration.
Valgrind doesn't show any new leaks if I apply the patch, interrupt
serialize() and then exit. R also passes make check after the applied
patch.
Do these changes make sense, or am I overloo...
2023 Apr 29
1
save.image Non-responsive to Interrupt
Hello,
Could save.image() be redesigned so that it promptly responds to Ctrl+C? It prevents the command line from being used for a number of hours if the contents of the workspace are large.
--------------------------------------
Dario Strbenac
University of Sydney
Camperdown NSW 2050
Australia