similar to: Wish there were a "strict mode" for R interpreter. What about You?

Displaying 20 results from an estimated 40000 matches similar to: "Wish there were a "strict mode" for R interpreter. What about You?"

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() }
2008 Apr 07
3
findGlobals on apply
Hi the list, Considere the following: f <- function(x){apply(x,2,mean)} findGlobals(f) findGlobals consideres mean as a global variable, which it is not. Is there a way to tell to findGlobals that mean is a function ? Thanks Christophe
2012 May 29
3
trouble automating formula edits when log or * are present; update trouble
Greetings I want to take a fitted regression and replace all uses of a variable in a formula. For example, I'd like to take m1 <- lm(y ~ x1, data=dat) and replace x1 with something else, say x1c, so the formula would become m1 <- lm(y ~ x1c, data=dat) I have working code to finish that part of the problem, but it fails when the formula is more complicated. If the formula has log(x1)
2017 Sep 19
3
what do you think about write.table(... qmethod = "excel")?
Last week one of our clients reported trouble with a csv file I generated with write.table. He said that columns with quotes for character variables were rejected by their data importer, which was revised to match the way Microsoft Excel uses quotation marks in character variables. I explained to them that quoted character variables are virtuous and wise, of course, but they say Microsoft Excel
2006 Aug 24
2
SELinux Strict Mode
According to http://www.redhat.com/magazine/006apr05/features/selinux/ there is a package named selinux-policy-strict, which contains a series of rules for correctly handling many situations (software) when using strict policy. Does CentOS have this package available ? If not, can someone make it available through Centosplus or Addon, for example ? This package is not part of the upstream main
2017 Sep 19
2
what do you think about write.table(... qmethod = "excel")?
On 19/09/2017 4:10 PM, Ista Zahn wrote: > On Tue, Sep 19, 2017 at 1:04 PM, Paul Johnson <pauljohn32 at gmail.com> wrote: >> Last week one of our clients reported trouble with a csv file I >> generated with write.table. He said that columns with quotes for >> character variables were rejected by their data importer, which was >> revised to match the way Microsoft
2012 Apr 16
3
I wish xlim=c(0, NA) would work. How about I send you a patch?
I'm looking for an R mentor. I want to propose a change in management of plot options xlim and ylim. Did you ever want to change one coordinate in xlim or ylim? It happens to me all the time. x <- rnorm(100, m=5, s=1) y <- rnorm(100, m=6, s=1) plot(x,y) ## Oh, I want the "y axis" to show above x=0. plot(x,y, xlim=c(0, )) ##Output: Error in c(0, ) : argument 2 is empty
2002 Feb 12
3
Strict Mode for Client?
Is there a way to specify "strict modes = false" on the client side? I'm having trouble getting the client to accept the password file on Windows 2000, since rsync doesn't want the file to be other-readable, but this concept doesn't map too well to Windows. Alternatively, if I could simply set the proper permissions on the passfile, that would suit me fine, but it seems
2006 Oct 26
0
[LLVMdev] lli in interpreter mode and external native libraries
On Wed, 25 Oct 2006, Sarah Thompson wrote: > Is there any way to support calling external libraries from interpreted > code (*not* JITted code) within lli? Sure. > I am looking at the external functions implementation, and it seems just > to wrap back onto its own library, looking up lli_X_... prefixed > functions. It would (for obvious reasons) be incredibly useful not to be >
2006 Oct 26
2
[LLVMdev] lli in interpreter mode and external native libraries
Chris Lattner wrote: > > The JIT has a superset of this functionality. However, if there is JIT > support for the host that you are interested in, you shouldn't have to use > the interpreter at all. > > For interpreting, yes, but model checking is weirder so it's greatly beneficial to be able to heavily hack an interpreter. >> I can't really move to using
2006 Oct 26
0
[LLVMdev] lli in interpreter mode and external native libraries
On Thu, 26 Oct 2006, Sarah Thompson wrote: > Chris Lattner wrote: >> 3. Best: Find a "foreign function interface" library, and use that to >> interface to native code. >> > This is the only option that's really usable, unfortunately, because I > have no control over what code some potential user might want to model > check. Ok. > I was wondering
2006 Oct 28
0
[LLVMdev] lli in interpreter mode and external native libraries
>>> I can't really move to using the JIT entirely because I want to replace >>> the memory model with something that supports backtracking -- this is >>> doable (fairly) straightforwardly with the interpreter, but it would >>> require some very complicated transformations to the code in order to do >>> this within the JIT environment, and it would
2006 Oct 26
2
[LLVMdev] lli in interpreter mode and external native libraries
Hi all, Is there any way to support calling external libraries from interpreted code (*not* JITted code) within lli? I am looking at the external functions implementation, and it seems just to wrap back onto its own library, looking up lli_X_... prefixed functions. It would (for obvious reasons) be incredibly useful not to be restricted to the (tiny) set of supplied functions. Thank you in
2023 Dec 20
1
Discussion: new terrapin resisting ciphers and macs (alternative to strict-kex) and -ctr mode question.
Hello, in addition to my last thread about a new config option to make strict-kex mandatory, I also wonder if a new mechanism for ciphers/macs can be introduced and is reliable by simple both sides using it. So there could be a Chacha20-Poly1305v2 at openssh.com which uses AD data to chain the messages together, so it will be resistant against terrapin even without the strict-kex. Consequently
2006 Oct 26
2
[LLVMdev] lli in interpreter mode and external native libraries
Chris Lattner wrote: > 3. Best: Find a "foreign function interface" library, and use that to > interface to native code. > This is the only option that's really usable, unfortunately, because I have no control over what code some potential user might want to model check. I was wondering whether there might be anything in the JIT support that could be reused for
2005 Nov 16
2
Bug or a feature that I completely missed?
Dear all, while looking at some R-code submitted by students in a unit that I teach, I came across constructs that I thought would lead to an error. Much to my surprise, the code is actually executed. A boiled down version of the code is the following: > tt <- function(x, i){ + mean(x[i,2])/mean(x[i,1]) + } > dat <- matrix(rnorm(200), ncol=2) > mean(dat[,2])/mean(dat[,1]) [1]
2010 Sep 04
4
Please explain "do.call" in this context, or critique to "stack this list faster"
I've been doing some consulting with students who seem to come to R from SAS. They are usually pre-occupied with do loops and it is tough to persuade them to trust R lists rather than keeping 100s of named matrices floating around. Often it happens that there is a list with lots of matrices or data frames in it and we need to "stack those together". I thought it would be a simple
2023 Dec 20
1
Discussion: new terrapin resisting ciphers and macs (alternative to strict-kex) and -ctr mode question.
Hi there, > So there could be a Chacha20-Poly1305v2 at openssh.com which uses AD data to chain the > messages together, so it will be resistant against terrapin even without the strict-kex. > > Consequently the hmac-etmv2 at openssh.com mode could be deviced in a similar manner, to > also include the transcript hash or similar things. This would still require both, client and
2020 Apr 27
1
Reload dialplan from bash in strict mode
Hi All, I hope someone can give me a hint. We try to reload the asterisk dialplan config using ansible command module. Using this we just trigger asterisk -rx "dialplan reload" Now we want ansibe to fail if there is something wrong in the dialplan. If we put a bad config in extensions.conf dialplan reload prints some warning in Asterisk console but the command "asterisk
2017 May 05
6
lm() gives different results to lm.ridge() and SPSS
Hi, Here is (I hope) all the relevant output from R. > mean(s1$ZDEPRESSION, na.rm=T) [1] -1.041546e-16 > mean(s1$ZDIVERSITY_PA, na.rm=T) [1] -9.660583e-16 > mean(s1$ZMEAN_PA, na.rm=T) [1] -5.430282e-15 > lm.ridge(ZDEPRESSION ~ ZMEAN_PA * ZDIVERSITY_PA, data=s1)$coef ZMEAN_PA ZDIVERSITY_PA ZMEAN_PA:ZDIVERSITY_PA -0.3962254 -0.3636026