similar to: findGlobals on apply

Displaying 20 results from an estimated 200 matches similar to: "findGlobals on apply"

2007 Dec 16
2
clean programming
Hello the list, I am trying to write a "cleanProgramming" function to test the procedure I use. For example, I want to be sure that I am not using globals variables. The function "findGlobals" detect that. To list the globals used in function "fun", the syntax is : "findGlobals(fun,FALSE)$variable" My problem is that I want to use it in a function,
2007 Nov 22
2
Clean programming with R
Hi all Is there any compiler for R ? By compiler, I mean something that check the cleanliness of the code : if we declare all the variables we use, if we don't use external variable from a function and so on... For exemple, something that will ring a bell on the following code (saying "line 4 : 'pp' undefine in function 'power' ") 1. pp <- 3 2. power <-
2011 Mar 16
2
Detecting bad lexical scoping
I've recently hunted down a troublesome bug in my own code, and am looking for an easy mechanism to detect this kind of error in other R code. The problem was an undefined variable inside of a function. Unfortunately, R looked for that variable in the global environment and found it since there was variable with that name in my testing scripts (note to self: do not name things "x").
2013 Apr 08
4
checkUsage from codetools shows errors when function uses functions from loaded packages
Dear list members, I frequently program small scripts and wrap them into functions to be able to check them with checkUsage. In case these functions (loaded via source or copy pasted to the R console) use functions from other packages, I get this error: no visible global function definition for ?xxxxxxx? For example: test = function() { require(plotrix) color.legend() }
2003 Jul 28
0
codetools
I've put together a package codetools with some tools for examining R source code. It is available at http://www.stat.uiowa.edu/~luke/R/codetools/codetools.tar.gz It requires a reasonably current version of R-devel. The main user functions are: checkUsage, checkUsageEnv, checkUsagePackage: Examine closure, closures in an environment, closures in a package, and report
2012 Jun 23
1
globalVariables()
Dear r-devel list members, By placing a call to the new (with R 2.15.1) globalVariables() in the development version of the Rcmdr package, I've succeeded in reducing the "notes" produced by R CMD check from dozens to two. But I still get the following notes, even though '.commander.done' is in the call to globalVariables(): ------------- snip ------------ * checking R code
2011 Jan 06
2
Global variables
Dear R-users, Is there a way I can prevent global variables to be visible within my functions? Sebastien
2017 Aug 07
3
Dovecot infrastructure
Hi, I would need some suggestion for a dovecot based mail infrastructure. Actually, only one server (with dovecot sendmail amavis spamassassin clamav etc etc) is no longer enouth, so I thought I would put on a more complex infrastructure on different servers. But I do not know a few things. I was thinking about partitioning users on 3-4 servers with dovecot (imap / pop3) and dovecot-lda (no
2018 Mar 14
0
Possible Improvement to sapply
>>>>> Henrik Bengtsson <henrik.bengtsson at gmail.com> >>>>> on Tue, 13 Mar 2018 10:12:55 -0700 writes: > FYI, in R devel (to become 3.5.0), there's isFALSE() which will cut > some corners compared to identical(): > > microbenchmark::microbenchmark(identical(FALSE, FALSE), isFALSE(FALSE)) > Unit: nanoseconds > expr
2013 Jan 16
2
Codetools Query (repost)
Sorry for reposting, i keep forgetting this should be plain text. Will not make this mistake again Hello, The following code moo <- function(a=1){ x=1; x=x+y} funs <- new.env() enter <- function(type, v, e, w){ assign(v, TRUE, funs) } library(codetools) collectUsage(moo, enterGlobal = enter) adds + to the environment funs i.e. funs: "=" "{" "+"
2000 Oct 03
3
prcomp compared to SPAD
Hi ! I've used the example given in the documentation for the prcomp function both in R and SPAD to compare the results obtained. Surprisingly, I do not obtain the same results for the coordinates of the principal composantes with these two softwares. using USArrests data I obtain with R : > summary(prcomp(USArrests)) Importance of components: PC1 PC2
1998 Oct 26
2
IBM 4039 Laserprinter. Weird problem.
I have menaged to setup Samba services to share an IBM 4039 printer and have tested another printer (Epson LX-800) on the PC. It works fine. The weird thing, the IBM4039 will not print anything. All the jpbs will be spooled. For each print job to be printed. I will need to switch off the printer and switch it on again. Have anyone encountered such problems before? I know there is basically
2009 Oct 28
3
variable labels to accompany data.frame
Often it is useful to keep a "codebook" to document the contents of a dataset. (By "dataset" I mean a rectangular structure such as a dataframe.) The codebook has as many rows as the dataset has columns (variables, fields). The columns (fields) of the codebook may include: ? variable name ? type (character, factor, integer, etc) ? variable label
2008 Dec 09
1
Printer upload problem
Hi there, We have 4 samba print servers we use for our 3000 users. they're configured to automatically distribute printer drivers to our windows clients. Recently, we have added a Xerox WorkCenter 5638 monster. But we're unable to upload the driver to the samba server throught print wizzard as windows admin. We've tried PCL, PCL 6, and PS drivers available on Xerox
2013 Aug 30
1
libvirt-qemu/kvm passthru w/Intel 82598EB
Hi, I am trying to configure two identical systems with the following setup. dom0: Centos 6 OS on Apple Xserve i7 server with PCI cards for 4GB FC (LSI FC949ES) and 10GB Ethernet (Intel 82598EB) dom1: Centos 5 OS with passthru mode of PCI 4GB FC and 10GB Ethernet (ixgbe and mptfc blacklisted in dom0) Everything starts ok, but networking in dom1 using the 10GB interface has extremely high rtt
2010 Oct 20
2
CI using ci.numeric
Hi, I am trying to calculate confidence intervals using ci.numeric from epicalc package. If I generate a normal set of data and find the 99% and 95% CI, they seem too narrow to me. Am I doing something wrong?? The IQR goes from -0.62 to 0.62, so I thought the CI limits should be more extreme than these values. x<- rnorm(200,0,1) ci.numeric(x=mean(x),n=200,sds=sd(x),alpha=0.05) n
2006 Oct 29
2
Live/Realtime streaming
Hello List, i would like to stream to a network. I am expecting a delay/latency of 1-2ms. I have compiled and install icecast 2.3.1 on OpenSuSE10.1. I also had a look at: http://www.6809.org.uk/media/ices2-howto.shtml#config-input-dev (1) http://lists.xiph.org/pipermail/icecast/2006-February/010340.html (2) and http://www.6809.org.uk/media/run_ices (3) When i use Link/Way (3) i had to change
2018 Dec 18
2
Little strangeness on dns-* account...
I've setup a script that scan non-disabled user base, base query: (&(objectClass=user)(!(objectClass=computer))(!(userAccountControl:1.2.840.113556.1.4.803:=2))) and for every user i check the 'last password change' data value, doing some thing (eg, disabling it ;-) if it is too far. I've found that my script get also some 'dns-*' account; looking at data i've
2011 Mar 24
3
Extract the names of the arguments in an "expression"
Hi everybody: I need to get the names of the arguments in an object of class "expression". I've got the following expression: > x <- expression(rho * cos(omega)) Is there any function or procedure that returns the names of the arguments (in the example: "rho" and "omega")? I tried a rough approach implemented in the function expr.args() shown below. As
2009 Feb 05
0
no visible binding for global variable
Everyone, I know that this has been discussed a few times on the list, but I think that there is a high false positive rate of messages from findGlobals during R CMD check (I know the help page has that "The result is an approximation"). Here are two examples of from the caret package: This function get the message "predictors.gbm: no visible binding for global variable