similar to: do.call and sys.call: suggestion for improval?

Displaying 20 results from an estimated 2000 matches similar to: "do.call and sys.call: suggestion for improval?"

2011 Jan 28
1
plot not generic
Hello list. I was trying to see some of the code for plot.glmnet in package glmnet (this function name is in the documentation). After loading the library, I tried the obvious typing in the name, but I received a message telling me it could not be found. So I fiddled around a little, and noticed that R does not recognize ''plot'' as a generic function, and as such,
2011 Mar 04
3
Generic mixup?
Hello list. This is from an R session (admittedly, I''m still using R 2.11.1): > print function (x, ...) UseMethod("print") <environment: namespace:base> > showMethods("print") Function "print": <not a generic function> Don''t the two results contradict each other? Or do I have a terrible misunderstanding of what
2011 Jan 28
2
Injecting code in a package?
Dear list, I''ve had this a few times now, and wonder if this is possible: I''m using a package, often for plotting something, but I want to tune the way the plotting goes, in a way that was not foreseen by the maker of the package. Now, most of the time, these kinds of R functions (say pkg::plot.something) call into other R functions (say pkg::plot.something.internal), and
2010 Dec 07
1
Dataframe from list of similar lists: not _a_ way, but _the best_ way
Hi All. I often find myself in this situation: . Based on some vector (or list) of values, I need to calculate a few new values for each of them, where some of the new values are numbers, but some are more of descriptive nature (so: character strings) . So I use e.g. sapply, passing a custom function that returns a list with all the calculated values . The result of
2011 Jan 19
1
expand.grid
Hello list. I feel like an idiot. There exists a method called expand.grid which, from the documentation, appears to do just what I want, but then it doesn''t, and I can''t get it to behave. Given a dataframe dfr<-data.frame(c1=c("a", "b", NA, "a", "a"), c2=c("d", NA, "d", "e", "e"),
2011 Jan 20
2
Using a list as multidimensional indexer
Hello list. Another 'puzzle' for which I don't have a clean solution. Say I have a multidimensional object, e.g.: Mm<-matrix(1:6, nrow=2, dimnames=list(c("a","b"), c("g","h","i"))) And on the other hand I have a list Ind<-list("b","g") This holds, for each dimension, an indexer for that dimension. Now I would
2011 Apr 29
2
abline outside of plot region
Hi R people. I ran into this problem: I created a plot with errbars, like this: > errbar(x=c(1,2,3,4), y=c(2,1,3,3), yminus=c(1.5,0.5,2.5,2.5), yplus=c(2.5,1.5,3.5,3.5)) Next, I wanted to accentuate some x value with an abline, like this: > abline(v=2) In one of my R sessions (which admittedly I have had open for quite a while now), the abline draws outside of the plotting region
2012 Jun 01
1
Dependencies on recommended packages
Dear all, I've recently had some issues getting my package to successfully "check". This was on R-Forge, so it's not obvious for me to provide SessionInfo or the likes (if necessary, Stefan can chime in?). After some research (mainly by Stefan Theussler, driving force behind R-Forge), this turned out to be the root cause: On R-Forge, the version of R installed was the
2011 Sep 22
1
R check error / update.packages
While building/checking a package of mine that depends on glmnet, I got the following message: * checking whether the name space can be loaded with stated dependencies ...Warn ing: running command ''"C:/Users/nisabbe/Documents/R/R-2.13.1/bin/i386/Rterm.exe" R_DEFAULT_PACKAGES=NULL --vanilla --slave -f C:\Users\nisabbe\AppData\Local\Tem p\RtmpZpjj07\Rin121ae93''
2011 Feb 01
2
Preparing dataset for glmnet: factors to dummies
Hello list. For some reason, the makers of glmnet do not accept a dataframe as input. They expect the input to be a matrix, where the dummies are already precoded. Now I have created a sample dataset with . 11 factor columns with two levels . 4 factor columns with three levels . 135 continuous columns (from a standard normal) . 100 observations (rows) Say this dataframe is in dfrPredictors. What
2010 Oct 22
2
Linking to lapack
Hello all. I'm developing a package for R holding a Gibbs sampler, which tends to have better performance when written in C than in R. During each iteration in the Gibbs sampler, I need the inverse of a symmetric matrix. For this, I wish to use lapack, as is concisely suggested in "Writing R extensions", since this will have better performance than I could ever write myself. After
2011 Sep 22
4
R CMD check file issues
This problem is likely to be specific to Windows, and particularly Win7. After a successful build of a package (R CMD build addendum), I immediately run an R CMD check for the same package. Not always, but _very_ often, I get the following error: C:\Users\nisabbe\Documents\@Doctoraat\R>R CMD check addendum Loading required package: tcltk Loading Tcl/Tk interface ... done Loading
2011 Feb 28
0
Fwd: Re: speed up process
Dear Jim, Here is again exactly what I did and with the output of Rprof (with this reduced dataset and with a simpler function, it is here much faster than in real life). Thanks you again for your help! ## CODE ## mydata1<- structure(list(species = structure(1:8, .Label = c("alsen","gogor", "loalb", "mafas", "pacyn", "patro",
2014 Apr 25
4
dovecot temporary suspension all of pop3 login about 5 minutes
Dear All? When the user login P0P3 more than 10 times in 1 minute that the dovecot temporary suspension all of pop3 login about 5 minutes. How to disable the setting for dovecot. Mail Log: Apr 24 16:11:14 mww dovecot: pop3-login: Login: user=<scan>, method=PLAIN, rip=192.168.16.84, lip=192.168.16.159, mpid=8767, session=<5USPZMX3/QDAqBBU> Apr 24 16:11:14 mww dovecot:
2019 Dec 21
2
accessing stack frame after returning from the function
Hello, I have a few general questions. 1. Whether the memory contents assigned for a function are accessible after we return from that function? If yes, how can we access it? 2. Does llvm delete the stackframe assigned for a specific function, after we return from that function? 3. If not, how can we delete the stackframe or clear the memory content after we return from the function? Where do
2009 Sep 29
1
Interesting function in a function problem....
#I have these data. Basically, I want to run a tapply to calculate the mean and st. err. by factor. #The problem is, I want to add a finite correction to the variance prior to calculating the standard error. #Now I know I could just do this in 3/4 steps by calculating the var, applying the correction, then calculating the StErr. #However, I am trying to learn about functions and how they work. So
2009 Sep 04
0
Samba Panic when attempting to connect using OS X client (3.3.7)
Hi, Am running Samba 3.3.7 on FreeBSD 7.1. All Windows clients (W2K & WXP) can connect fine but cannot connect any OS X clients (version 10.4 & 10.5). These OS X client receive an error message saying it cannot connect. The log indicates the following: [2009/09/04 12:26:19, 0] lib/fault.c:fault_report(40) =============================================================== [2009/09/04
2016 Jul 29
0
Fwd: Good installation documentation on samba4?
On 29/07/16 20:50, Léon van der Kaap wrote: > I figured out the resolv.conf bit fidgeting around. Thanks for the tip > anyway. > > Regarding the krb5.conf I have never got it working with the example > files. I have always added at least a "kdc = samdom.example.com > <http://samdom.example.com>" to the lines, but my file is actually > still a bit more
2017 Jun 27
0
texi2pdf doesn't find the correct MikTex installation due to erroneous Sys.which()
Ah, but I bet you do have that path...try > Sys.which("texify") texify "C:\\PROGRA~2\\MIKTEX~1.9\\miktex\\bin\\texify.exe" > normalizePath(Sys.which("texify")) [1] "C:\\Program Files (x86)\\MiKTeX 2.9\\miktex\\bin\\texify.exe" Cheers, Rich Calaway Microsoft R Product Team 24/1341 +1 (425) 4219919
2023 Oct 15
1
Compiling within Samba Source-Tree
On 10/14/23 23:43, Peter Koch via samba wrote: > It must be possible to tell the build-system that smbscardd needs -lcrypto > Please let me know how. ./source3/wscript: conf.CHECK_FUNCS_IN('DES_pcbc_encrypt', 'crypto') As we already seem to check for libcrypto and store the dependency, you should be able to just add crypto to your list of deps. > no talloc