Displaying 20 results from an estimated 6000 matches similar to: "unserializing hash with unquoted strings"
2011 Aug 31
2
Treat an Unquoted Character String as a Data Frame
I have several datasets that come from different studies (fv02 and fv03),
they represent different levels (patients and lesions), and they have
different patient populations (itt, mitt, mitt3). I wanted to write some
code that would pass my three requirements into a function I wrote, produce
the output, but not have to require me to also pass a unique plot title or
output filename for each
2018 Nov 08
0
error unserializing ascii format (v2 or v3)
I see this on MacOS as well, so likely not platform dependent.
A little more diddling to try to narrow it down:
> unserialize(serialize(as.raw(1), NULL, version=2, ascii=TRUE))
[1] 30
> unserialize(serialize(list(as.raw(1)), NULL, version=2, ascii=TRUE))
[[1]]
[1] 30
> unserialize(serialize(list(raw=as.raw(1)), NULL, version=2, ascii=TRUE))
Error in unserialize(serialize(list(raw =
2018 Nov 07
2
error unserializing ascii format (v2 or v3)
I ran into an interesting error unserializing a file created with
ascii=TRUE:
R 3.5.1 (Windows or Linux):
> unserialize(serialize(list(raw=as.raw(c(39,41))), NULL, version=2,
ascii=TRUE))
Error in unserialize(serialize(list(raw = as.raw(c(39, 41))), NULL,
version = 2, :
ReadItem: unknown type 29, perhaps written by later version of R
The same error happens when the
2019 Jan 25
0
[klibc:update-dash] [EXPAND] Split unquoted $@/$* correctly when IFS is set but empty
Commit-ID: af24ffa8f0b9d90e29d6daf77e5349dd3ffe4aec
Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=af24ffa8f0b9d90e29d6daf77e5349dd3ffe4aec
Author: Herbert Xu <herbert at gondor.apana.org.au>
AuthorDate: Wed, 8 Oct 2014 15:24:23 +0800
Committer: Ben Hutchings <ben at decadent.org.uk>
CommitDate: Fri, 25 Jan 2019 02:57:21 +0000
[klibc] [EXPAND] Split
2020 Mar 28
0
[klibc:update-dash] dash: [EXPAND] Split unquoted $@/$* correctly when IFS is set but empty
Commit-ID: 4dc603d0fe5a997d8bbd5048b229d655e6549ced
Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=4dc603d0fe5a997d8bbd5048b229d655e6549ced
Author: Herbert Xu <herbert at gondor.apana.org.au>
AuthorDate: Wed, 8 Oct 2014 15:24:23 +0800
Committer: Ben Hutchings <ben at decadent.org.uk>
CommitDate: Sat, 28 Mar 2020 21:42:54 +0000
[klibc] dash: [EXPAND] Split
2019 Jan 25
0
[klibc:update-dash] expand: Do not quote backslashes in unquoted parameter expansion
Commit-ID: afc40b4eb057b08d8cc2eebefdf6cac05849e8ae
Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=afc40b4eb057b08d8cc2eebefdf6cac05849e8ae
Author: Herbert Xu <herbert at gondor.apana.org.au>
AuthorDate: Wed, 28 Mar 2018 18:37:51 +0800
Committer: Ben Hutchings <ben at decadent.org.uk>
CommitDate: Fri, 25 Jan 2019 02:57:21 +0000
[klibc] expand: Do not quote
2020 Mar 28
0
[klibc:update-dash] dash: expand: Do not quote backslashes in unquoted parameter expansion
Commit-ID: 6b0cf885180cfb08f7ec5139e67e581bbba5d6be
Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=6b0cf885180cfb08f7ec5139e67e581bbba5d6be
Author: Herbert Xu <herbert at gondor.apana.org.au>
AuthorDate: Wed, 28 Mar 2018 18:37:51 +0800
Committer: Ben Hutchings <ben at decadent.org.uk>
CommitDate: Sat, 28 Mar 2020 21:42:55 +0000
[klibc] dash: expand: Do not
2019 Jan 25
0
[klibc:update-dash] expand: Fix ghost fields with unquoted $@/$*
Commit-ID: c36feecd03749ebe7eccb7556c5fc5d38bd88dfd
Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=c36feecd03749ebe7eccb7556c5fc5d38bd88dfd
Author: Herbert Xu <herbert at gondor.apana.org.au>
AuthorDate: Fri, 23 Mar 2018 18:58:47 +0800
Committer: Ben Hutchings <ben at decadent.org.uk>
CommitDate: Fri, 25 Jan 2019 02:57:21 +0000
[klibc] expand: Fix ghost
2020 Mar 28
0
[klibc:update-dash] dash: expand: Fix ghost fields with unquoted $@/$*
Commit-ID: 887c4118916c8ee1aff8cdefbb691bd835c6566e
Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=887c4118916c8ee1aff8cdefbb691bd835c6566e
Author: Herbert Xu <herbert at gondor.apana.org.au>
AuthorDate: Fri, 23 Mar 2018 18:58:47 +0800
Committer: Ben Hutchings <ben at decadent.org.uk>
CommitDate: Sat, 28 Mar 2020 21:42:54 +0000
[klibc] dash: expand: Fix
2011 Dec 06
1
unserialize and eager execution
Hi,
While debugging a network server I'm developing I noticed something unusual
- call to unserialize() resulted in
an error about loading a namespace.
I was a bit taken back by this - why should unserializing an object cause a
namespace lookup?
Are there any other side-effects of unserialize() that I should be cautious
about? I've been
digging through the R_Unserialize() call, I
2020 Oct 29
2
Something is wrong with the unserialize function
Hi all,
I am not able to export an ALTREP object when `gctorture` is on in the
worker. The package simplemmap can be used to reproduce the problem. See
the example below
```
## Create a temporary file
filePath <- tempfile()
con <- file(filePath, "wrb")
writeBin(rep(0.0,10),con)
close(con)
library(simplemmap)
library(parallel)
cl <- makeCluster(1)
x <- mmap(filePath,
2007 Oct 03
1
Resolving digit strings using pound/hash.
Hi all,
The thing that has bugged me about Asterisk since I first started
playing with it, is the fact that the pound sign/hash/octothorp doesn't
resolve digit conflicts or cancel timing on a variable length string such
as a tie line code or when you call numbers in a country whose length can
be different between numbers in the same plan. In North America, we see
this when calling
2012 Dec 13
2
changing character strings with hash marks
Hi R users,
I am quite new to R and I don't know how to deal with this (surely) easy issue. I need to replace words in sentences with as many hash marks as the number of characters per each word, as in the following example:
Mary plays football
#### ##### ########
Any suggestion about the function to be used?
Thanks a lot.
S.
[[alternative HTML version deleted]]
2020 Oct 29
0
[External] Something is wrong with the unserialize function
Thanks for the report. Will look into it when I get a chance unless
someone else gets there first.
A simpler reprex:
## create and serialize a memmory-mapped file object
filePath <- "x.dat"
con <- file(filePath, "wrb")
writeBin(rep(0.0,10),con)
close(con)
library(simplemmap)
x <- mmap(filePath, "double")
saveRDS(x, file = "x.Rds")
## in a
2020 Oct 29
2
[External] Something is wrong with the unserialize function
This
Index: src/main/altrep.c
===================================================================
--- src/main/altrep.c (revision 79385)
+++ src/main/altrep.c (working copy)
@@ -275,10 +275,11 @@
SEXP psym = ALTREP_SERIALIZED_CLASS_PKGSYM(info);
SEXP class = LookupClass(csym, psym);
if (class == NULL) {
- SEXP pname = ScalarString(PRINTNAME(psym));
+ SEXP pname =
2020 Oct 29
0
[External] Something is wrong with the unserialize function
I found that also; fixed in r79386 in the trunk. Will port to R-patched
shortly.
Best,
luke
On Thu, 29 Oct 2020, Martin Morgan wrote:
> This
>
> Index: src/main/altrep.c
> ===================================================================
> --- src/main/altrep.c (revision 79385)
> +++ src/main/altrep.c (working copy)
> @@ -275,10 +275,11 @@
> SEXP psym =
2010 Nov 03
2
How to unquote string in R
s= "Hey"
a = "Hello"
table = rbind(s,a)
write.table(table,paste("blah",".PROPERTIES",sep = ""),row.names =
FALSE,col.names = FALSE)
In my table, how do I output only the words and not the words with the
quotations?
--
View this message in context: http://r.789695.n4.nabble.com/How-to-unquote-string-in-R-tp3025654p3025654.html
Sent from the R
2012 Aug 31
3
Arrays Partial unserialization
Hi all,
I'm working with some huge array in R and I need to load several ones to
apply some functions that requires to have all my arrays values for each
cell...
To make it possible, I would like to load only a part (for example 100
cells) of all my arrays, apply my function, delete all cells loaded,
loaded following cells and so on.
Is it possible to unserialize (or load) only a
2017 Mar 17
2
RFC: (in-principle) native unquoting for standard evaluation
I love the pointer analogy. Presumably the additional complication of scope
breaks this however. * itself would have been a nice operator for this were
it not prone to ambiguity (`a * *b` vs `a**b`, from which @ does not
suffer).
Would this extension require that function authors explicitly enable
auto-quoting support? I somewhat envisioned functions seeing the resolved
unquoted object (within
2017 Mar 17
4
RFC: (in-principle) native unquoting for standard evaluation
(please be gentle, it's my first time)
I am interested in discussions (possibly reiterating past threads --
searching didn't turn up much) on the possibility of supporting standard
evaluation unquoting at the language level. This has been brought up in a
recent similar thread here [1] and on Twitter [2] where I proposed the
following desired (in-principle) syntax
f <-