Displaying 13 results from an estimated 13 matches for "enquot".
Did you mean:
edquot
2010 Dec 02
1
parLapply - Error in do.call("fun", lapply(args, enquote)) : could not find function "fun"
...ng this instead of apply since it
allows me to test using parallel running R, and because it runs faster than
lapply.
M_set <-
parLapply(cl,setin,M.set.find,month=month,n1=n1,n2=n2,MC_1st_obs2=MC_1st_obs2)
using this it gives me the follow error:
Error in do.call("fun", lapply(args, enquote)) :
could not find function "fun"
but, this works correctly when I just use lapply (it's just a bit slower
than I need it to be). Also, I know that the clusterCall function works
fine with my homemade function because all the nodes of the cluster return
the appropriate results wh...
2010 Nov 02
2
on the usage of do.call
...t know if it is possible, but I would like to use do.call in C code in
my package. The function do.call is defined as
> do.call
function (what, args, quote = FALSE, envir = parent.frame())
{
if (!is.list(args))
stop("second argument must be a list")
if (quote) {
enquote <- function(x) as.call(list(as.name("quote"),
x))
args <- lapply(args, enquote)
}
.Internal(do.call(what, args, envir))
}
<environment: namespace:base>
>
In <src>/main/names.c, the function do.call is linked to the C function
do_docall (l...
2012 Jun 26
2
flatten lists
...vector because then everything will be casted to character
vectors:
x <- list(name="Jeroen", age=27, married=FALSE,
home=list(country="Netherlands", city="Utrecht"))
unlist(x)
This function sort of does it:
flatlist <- function(mylist){
lapply(rapply(mylist, enquote, how="unlist"), eval)
}
flatlist(x)
However it is a bit slow. Is there a more native way?
2015 Dec 09
2
Bug: part_set_name does not enquote name
Windows server 2012 sets partition names with spaces.
><fs> part-get-name /dev/sda 3
libguestfs: trace: part_get_name "/dev/sda" 3
guestfsd: main_loop: new request, len 0x38
parted -s -m /dev/null
Error: The device /dev/null is so small that it cannot possibly store a
file system or partition table. Perhaps you selected the wrong device?
Warning: Error fsyncing/closing
2012 Mar 15
3
single, double or no quotes in expression
...;A + B", "B * (2+C)")
and want to make expressions without quotes out of it.
I tried
> lapply(lapply(rhs_eq, as.symbol), as.expression)
which only turns the double quotes into single quotes, but does not remove
the quotes.
I also played around with as.formula, as.name, quote and enquote, but had no
success.
Does anyone know about quotes in the expression data type?
Thanks in advance,
Hannes
--
View this message in context: http://r.789695.n4.nabble.com/single-double-or-no-quotes-in-expression-tp4475247p4475247.html
Sent from the R help mailing list archive at Nabble.com.
2008 Dec 31
1
Problem with package SNOW on MacOS X 10.5.5
...are generating errors.
When running the example (from the snow help docs) for parApply on
MacOSX 10.5.5, I get the
following error:
cl <- makeSOCKcluster(c("localhost","localhost"))
sum(parApply(cl, matrix(1:100,10), 1, sum))
Error in do.call("fun", lapply(args, enquote)) :
could not find function "fun"
Any ideas? Do I possibly need MPI or PVM to run the "Apply" functions?
Thanks,
--
Gregory Riddick, PhD.
CRTA Research Fellow
National Institutes of Health
National Cancer Institute, Neuro-Oncology Branch
9030 Old Georgetown Road
Buildi...
2011 Jun 12
1
snow package
...x <= (-th)) 1 else 0) ###correlation coefficient
clusterExport(cl,c("pfunc","th"))
cor.c.f <- parApply(cl,tms,c(1,2),FUN=pfunc)
The parApply results in the error message:
> cor.c.f <- parApply(cl,tms,c(1,2),FUN=pfunc)
Error in do.call("fun", lapply(args, enquote)) :
could not find function "fun".
Any ideas?
Best wishes
Kristian
________________________________
Helmholtz Zentrum M?nchen
Deutsches Forschungszentrum f?r Gesundheit und Umwelt (GmbH)
Ingolst?dter Landstr. 1
85764 Neuherberg
www.helmholtz-muenchen.de
Aufsichtsratsvorsitzende: Mi...
2010 Apr 09
1
Rsge: recursive parallelization
...#39;),
global.savelist=c('sge.parParApply', 'sge.globalPrep',
'global.savelist', 'sge.taskPrep', 'sge.checkNotNow',
'sge.get.jobid', 'sge.get.result', 'docall',
'enquote'),
packages=NULL)
and I still get bizarre behavior: half of the results will be NULL,
for instance; the other half, incomplete.
Would non-trivial changes to Rsge be required to make something like
this possible?
2007 Apr 03
4
binding JAVA, rushing!
Hi,
I met a problem when I binding JAVA.
1. download xapian-bindings-0.9.10.tar.gz to my local.
2. unzip binding file.
3. input ./configure --with-java in cygwin.
4 give me error:
checking for java... /cygdrive/c/Program
Files/Java/jdk1.5.0_11/bin/java
checking for javac... /cygdrive/c/Program
Files/Java/jdk1.5.0_11/bin/javac
checking for jar... /cygdrive/c/Program
Files/Java/jdk1.5.0_11/bin/jar
2009 May 09
1
Problem with package SNOW on MacOS X 10.5.5
...ple (from the snow help docs) for parApply on
> MacOSX 10.5.5, I get the
> following error:
>
>
> cl <- makeSOCKcluster(c("localhost","localhost"))
> sum(parApply(cl, matrix(1:100,10), 1, sum))
>
> Error in do.call("fun", lapply(args, enquote)) :
> could not find function "fun"
>
>
>
> Any ideas? Do I possibly need MPI or PVM to run the "Apply" functions?
>
> Thanks,
>
2012 Aug 01
4
apply function over same column of all objects in a list
Hello. Please forgive me if this problem has already been posted (and solved)
by someone else ... I can't find it anywhere though it seems so very basic.
Here it is:
I have a list comprised of several matrices, each of which has two columns.
> list
[[1]]
[,1] [,2]
[1,] 1 3
[2,] 2 4
[[2]]
[,1] [,2]
[1,] 5 7
[2,] 6 8
[[3]]
[,1] [,2]
2010 Oct 15
0
R 2.12.0 is released
...Felix Andrews).
? unique() and match() are now faster on character vectors where
all elements are in the global CHARSXP cache and have unmarked
encoding (ASCII). Thanks to Matthew Dowle for suggesting
improvements to the way the hash code is generated in unique.c.
? The enquote() utility, in use internally, is exported now.
? .C() and .Fortran() now map non-zero return values (other than
NA_LOGICAL) for logical vectors to TRUE: it has been an implicit
assumption that they are treated as true.
? The print() methods for "glm" and "lm&qu...
2010 Oct 15
0
R 2.12.0 is released
...Felix Andrews).
? unique() and match() are now faster on character vectors where
all elements are in the global CHARSXP cache and have unmarked
encoding (ASCII). Thanks to Matthew Dowle for suggesting
improvements to the way the hash code is generated in unique.c.
? The enquote() utility, in use internally, is exported now.
? .C() and .Fortran() now map non-zero return values (other than
NA_LOGICAL) for logical vectors to TRUE: it has been an implicit
assumption that they are treated as true.
? The print() methods for "glm" and "lm&qu...