Displaying 20 results from an estimated 50000 matches similar to: "package question"
2004 Jun 03
3
Sloppy argument checking for named arguments
Christian --
This is not a bug, but a feature, and the dot is not the issue here. R uses
partial argument matching on function arguments.
So:
> f <- function(foobar = 0){print(foobar)}
> f
function(foobar = 0){print(foobar)}
>
> f(fo=1)
[1] 1
> f(foo=1)
[1] 1
> f(foob=1)
[1] 1
> f(fooba=1)
[1] 1
> f(foon=1)
Error in f(foon = 1) : unused argument(s) (foon ...)
2004 May 03
2
Build problems on Linux SuSE 9.1
Hi,
did anybody succeed in building R on SuSE Linux 9.1?
My compilation failed with the following error messages:
make[4]: Entering directory `/home/lederer/Source/R-1.9.0/src/modules/X11'
gcc -I. -I../../../src/include -I../../../src/include
-I/usr/X11R6/include -I/us
r/local/include -DHAVE_CONFIG_H -D__NO_MATH_INLINES -mieee-fp -fPIC -g
-O2 -c d
ataentry.c -o dataentry.lo
In file
2003 Apr 22
3
lexical scope
Hi everyone
another documented feature that was a bit unexpected for me:
R> x <- 19
R> f <- function(t){t+x}
R> f(100)
[1] 119
--as expected: x is visible from within f()
..but...
R> g <- function(a){x <- 1e99 ; return(f(a))}
R> g(4)
[1] 23
--the "x" that is visible from within g() is just 19, which is not the
one I expected it to find.
R> rm(x)
2005 May 21
2
Possible (ab)use of lexical scoping in R ?
Dear list,
I wish to define a set of functions *auxilliary* to another set of
"main" ones, and I wonder if there is some "clever" way do do this using
lexical scoping. Looking for that in the list's archives did not get me
easily understood answers. Perusing MASS (1st, 2nd, 3rd and 4th
editions!) and "Programming S" wasn't of much help either...
R easily
2004 Nov 05
1
covariance bug (PR#7342)
Full_Name: Christian Lederer
Version: 1.8.0
OS: Linux
Submission from: (NULL) (217.229.7.13)
R-1.8.0 seems to calculate wrong covariances, when the argument of cov()
is a matrix or a data frame.
The following should produce a matrix of zeroes and NaNs:
x <- matrix(c(NA ,NA ,0.9068995 ,NA ,-0.3116229,
-0.06011117 ,0.7310134 ,NA ,1.738362 ,0.6276125,
0.6615581 ,NA
2023 Apr 05
1
on lexical scoping....
R *does* search the environment stack.
> search()
[1] ".GlobalEnv" "package:stats" "package:graphics"
[4] "package:grDevices" "package:utils" "package:datasets"
[7] "package:methods" "Autoloads" "package:base
What you seem to be missing is that a package may contain
bindings that it
2005 Feb 17
1
socket problems (maybe bugs?)
Dear R Gurus,
for some purpose i have to use a socket connection, where i have to read
and write both text and binary data (each binary data package will be
preceeded by a header line).
When experimenting, i encountered some problems (with R-2.0.1 under
different Linuxes (SuSE and Gentoo)).
Since the default mode for socket connections is non-blocking,
i first tried socketSelect() in order to
2004 Mar 03
1
Confusion about coxph and Helmert contrasts
Hi,
perhaps this is a stupid question, but i need some help about
Helmert contrasts in the Cox model.
I have a survival data frame with an unordered factor `group'
with levels 0 ... 5.
Calculating the Cox model with Helmert contrasts, i expected that
the first coefficient would be the same as if i had used treatment
contrasts, but this is not true.
I this a error in reasoning, or is it
2023 Apr 04
1
on lexical scoping....
On 04/04/2023 9:56 a.m., akshay kulkarni wrote:
> Dear Members,
> I have the following code typed at the console prompt:
>
> y <- x*10
>
> X has not been defined and the above code throws an object not found error. That is, the global environment does not contain x. Why doesn't it look further in the environment stack, like that of
2014 Sep 29
3
[LLVMdev] Proposal for ""llvm.mem.vectorize.safelen"
On 28 September 2014 22:09, Hal Finkel <hfinkel at anl.gov> wrote:
> Thanks Xinmin!
>
> So we'll need a method to ensure the correct (partial) ordering.
I thought that the idea was to avoid computing loop dependencies when
safelen is specified, at least at that level. We might do it to a
greater length, but we should assume it to be safe for distances < VL.
We still need
2003 Jun 11
3
OpenLDAP Administration for Samba3
I am looking for an LDAP client to manage the LDAP server that we are going
to use when we switch to samba3. A Windows variety would be OK, a web
interface would be even better. Just looking for suggestions to try.
Thanks,
Brandon
2003 May 28
5
Slow performance with QuickBooks
I have spent much of the day today researching performance tuning with
samba. I have tried everything that I can find out about how to make
performance faster. I checked disk performance with Bonnie, installed FTP
and tested a transfer that way, achieving 6-7 MB / second. about 30 seconds
for 150 MB file. I was finally able to achieve those speeds on a file
transfer to the server through
2008 Jun 10
1
Parse XML
Could someone provide a link or examples of parsing XML document in R? Few
specific questions below:
For instance I can retrieve specific nodes using this:
node <- xpathApply(xml, "//" %+% xtag, xmlValue)
1) I want to be able to retrieve parent node for this node, how can I do
this? getParentNode() does not seem to cut it.
2) How can I retrieve children nodes for a particular
2009 Mar 25
3
[LLVMdev] pragmas
Hello
Is there a "generic" pragma that is supported by LLVM and is visible
by optimization passes? or any other way for a programmer to pass
meta-data information to the compiler?
I am writing an analysis pass that could benefit from user provided
information. At this stage, I could like to keep the kind of
information that the user can provide as general as possible.
2003 Jun 03
5
Archive attribute
Our tape backup software (run through windows) backs up items based on
whether the archive attribute is set or not. If it is set, then it needs to
be backed up. Then it removes the attribute. When a user modifies a file,
the attribute is again set. This is how it normally works. Samba will not
allow the Archive Attribute to be unchecked. Is there anyway to allow this
functionality.
Samba
2003 Sep 30
1
variables
Hi,
can someone please help me.
I will give a simple example of my problem.
p <- function()
{
i <- 1
sr <- function(){
i<-i+3
i<- sqrt(i)
}
cat(i)
}
This is just an example. My main problem is defining
i like a global variable which I can use in the sub-
and main functions without any complicated switches.
Thanks in advance.
cilver
=====
=====================
Sylvie B.
2009 Mar 25
2
[LLVMdev] pragmas
Pre-empting Chris's inevitable response: don't add intrinsics!
I really like the 'disappearing function calls' idea. Chris suggested
practically the same thing for a previous question about adding BigInt
support.
Anthony, whichever route you take in the end, please consider
documenting your 'code adventure' on the wiki so others can learn from
your experience.
Justing
2023 Apr 04
6
on lexical scoping....
Dear Members,
I have the following code typed at the console prompt:
y <- x*10
X has not been defined and the above code throws an object not found error. That is, the global environment does not contain x. Why doesn't it look further in the environment stack, like that of packages? There are thousands of packages that contain the variable named x. Of
2003 Jun 26
8
2.2.8a, printer driver download: need to use setdrive r
This is the EXACT problem I had. Haven't fixed it either.... if I have 10
printers.... upload all the drivers.. for all the OS's... how do I tell
which drivers go with which printer?
-----Original Message-----
From: Andreas [mailto:andreas@conectiva.com.br]
Sent: Thursday, June 26, 2003 9:24 AM
To: samba@lists.samba.org
Subject: [Samba] 2.2.8a, printer driver download: need to use
2016 Jan 19
2
RFC: Supporting all entities declared in lexical scope in LLVM debug info
On Mon, Dec 14, 2015 at 7:01 AM, Aboud, Amjad via llvm-dev <
llvm-dev at lists.llvm.org> wrote:
> Hi,
>
> I verified that GDB 7.10 does support “DW_AT_abstract_origin” attribute on
> “DW_TAG_lexical_block”.
>
I take it you mean that it does the right thing, finding the direct
children of the abstract block when stepping into the inlined subroutine,
etc?
& this was a