Displaying 20 results from an estimated 700 matches similar to: "particulars of importing/loading libraries"
2013 Dec 04
1
Query on make
Greetings,
I have created several scripts which needs to be packaged.
I have done my groundwork on rpmbuild
Let us say I have 4 directories with scripts in them
dir1, dir2, dir3 and dir4
I want to create different packages which will contain the compiled
code (err.. shc)
pack1: dir1,dir2
pack2: dir1,dir3
pack3: dir1,dir3
I want the resulting rpm packages will be residing elsewhere (perhaps
2005 Mar 04
2
are there known problems with NTConfig.POL with samba 3.11 ?
Hi Jerry ,hi Sambatsitas,
yesterday i installed a brand new ldap smb pdc with latest smb sources (
all suse 9.2 ),
and latest ldap scripts from idealx.( orginal source rpm )
All work fine ( as far i testet it ). (Usrmgr was just wow..!)
So at last i did a NTConfig.POL with poledit.exe for win xp serv Pack2
on the netlogon share.
I used adm modified adm files and a other poledit cause
system.adm
2008 Apr 07
3
Overriding axis formatting with custom Axis method, Axis.numeric etc
Dear list:
I would like to override the default way R formats plot axes with a
custom method(s). Obviously I would prefer to define it as general as
possible avoiding writing a custom method for each individual class
where possible.
The plot.default method (and I assume other methods as well) calls
Axis(...) to produce the axis layout depending on data. In this sense it
seems reasonable to
2009 Mar 13
1
Rd \usage clause for an S4 replace method
Given S4 methods [ and [<-, how do I write the Rd-file usage clause for
the latter one?
What I have now is:
\S4method{[}{TimeSeries,TimeDate,missing}(x, i, j, ..., drop)
\S4method{[<-}{TimeSeries,TimeDate,missing,ANY}(x, i, j, ..., value)
which results in the following output:
## S4 method for signature 'TimeSeries, TimeDate, missing':
x[i, j, ..., drop]
2008 Apr 10
1
ISOdate/ISOdatetime performance suggestions, other date/time questions
Dear list:
working with date/times I have come across a problem that ISOdate and
ISOdatetime are too slow on large vectors of data. I was surprised just
until I looked at the implementation and the man page: "ISOdatetime and
ISOdate are convenience wrappers for strptime". In other terms, they
convert data to character representation first in order to create a
POSIXlt object that is then
2010 May 07
1
Bug in R -e "command"
Hi all:
since about a month we encountered a problem with R -e command: spaces
in the "command" of R -e "command" are no more tolerated. This same
issue affects 2.11 patched (05-05-2010), 2.10.1, and current devel (at
least the one of two weeks ago).
(I skip the mid of the printouts, replaced with ...)
* R -e "message('aaa aaa')"
ARGUMENT
2009 Feb 18
4
Google Summer of Code 2009
Hi,
in approximately one months time mentoring institutions can propose
projects for the Google Summer of Code 2009, see
http://code.google.com/soc/
Last year the R Foundation succesfully participated with 4 projects,
see http://www.r-project.org/SoC08/ for details. We want to
participate again this year. Our project proposals will be managed by
Manuel Eugster (email address in CC). Manuel
2009 Feb 11
1
setClassUnion with numeric; extending class union
Dear list:
I am looking for a good way to create an S4 class that would extend
numeric, but would allow NULL instead of data as well. As far as I can
see there is no way at the moment to do that, but please correct me if I
am wrong. The best solution I came up with so far was the following (it
also indicates a problem of using setClassUnion with numeric as one of
the classes):
I define a class
2008 Apr 22
1
graphics::Axis loosing S3/S4 class attributes of 'x' in 2.7.0 RC
Following my previous post on S3 method despatch, I put debug messages
in the code of Axis, Axis.default and plot.default in graphics/R/axis.R
and graphics/R/plot.R to print the class of x, at and y on plot. After
recompiling R, what I see is that x *lost* its class attribute (at least
for classes not known to 'graphics') in Axis, called directly from
plot.default and this could be the
2000 Jul 20
4
RFC: System and time support functions in R
I've been looking over system utility functions that we might want to
add to R. A few come out of specific needs, others from looking at
other systems and what people are using system() for. I've taken
account of Paul Gilbert's comments posted here a while ago (and I
think covered all except the use of mailers).
We currently have
date
*.socket
file.create
file.exists
file.remove
2008 Sep 03
1
ugly plots with xlim/ylim exceeding data range (changed since R2.6.1)
The behaviour of the plot function when used with xlim/ylim and the
matplot function as in the following simple example changed between
R2.6.1 and 2.7.0+ producing ugly plots in the new versions. In case of
plot it looks like the pretty function is called with wrong arguments
(i.e. range of supplied data rather than values of xlim and ylim):
m = matrix(c(-0.033, 0.009, 0.064, 0.050, 0.097,
2006 Feb 08
2
NAMESPACE Q: does import as exist?
Is there a way to rename a function when importing it? I want to say,
"import yourFunc from Foo as myFunc" in the NAMESPACE file.
Does this exist and I've missed it? If it doesn't exist, would others
think it useful (and possible)?
Best,
+ seth
2009 Nov 03
1
likely bug in 'serialize' or please explain the memory usage
Hi all,
assume the following problem: a function call takes a function object
and a data variable and calls this function with this data on a remote
host. It uses serialization to pass both the function and the data via a
socket connection to a remote host. The problem is that depending on the
way we call the same construct, the function may be serialized to
include the data, which was not
2008 Apr 22
1
plot(x) in 2.7.0 (with y=NULL) proposed code correction
Hi all:
following the previous discussion, it looks like plot(x) with y=NULL
still does not work correctly. If one tries for example plot(1:5) it
works, but already for plot(runif(100)) it does not. I posted the
proposed correction for plot.POSIXct and plot.POSIXlt before. Please
voice your opinions whether the following fix for plot.default could be
reasonable? I include the full function and
2009 Mar 30
1
CTRL-C during .Call causes R to quit to command line
Hello,
During a .Call e.g
while(TRUE){
value <-rhsqnextKVR(rdr) ## has .Call in this function
if(is.null(value)) break;
}
if I press CTRL-C, R exits straight to the command line.
Q: How can I prevent this? I should point out that my library uses
JNI, so I'm not sure if that is causing it.
I'm using R-2.8 on Linux (RHEL 5)
Thank you in advance
Regards
Saptarshi
2010 Apr 14
2
Why no race condition when returning UNPROTECT-ed memory from C?
Consider the C (or C++) code called from the .Call interface:
SEXP foo() {
SEXP *p = PROTECT(allocVector(REALSXP, 10));
...
UNPROTECT(1);
return p;
}
Why is there no danger that the allocated memory will be garbage
collected after the UNPROTECT, but before the return of p?
I have used code like this for some time and have never had a
problem, but I'm not sure if/why it is guaranteed
2008 May 07
1
optional setValidity()
Hi
Suppose I have an S4 class "foo" and a validity checking
function ".checkfoo()":
setClass("foo", representation=representation("numeric"))
setValidity("foo" , .checkfoo)
is fine; in my application, .checkfoo() verifies that a bunch
of necessary conditions are met.
But .checkfoo() is very time consuming and I want
to give users the option
2009 Jan 15
1
[Q] R CMD check signals error on code that works from UI
Add the following to example section of a dot-Rd manpage:
## :WHY: The following kills R CMD check but runs fine on console.
foos <- c("aaa", "bbb", "ccc")
cat(sapply(foos,
function(foo) {
sprintf("name: %-18s upper: %s\n",
foo,
toupper(foo))
}), sep="")
R CMD
2008 Nov 24
2
handling a matrix and .C
Hello R-devel,
I want to write extensions for R in C (maybe C++ and Fortran later) and it works fine, but there is one problem, which I cannot solve (in my view).
I want to handle a matrix from R in C. For arrays there is "as.double(...)", but nothing for a matrix.
I searched a while, but didn't find something.
Last I looked at the source code of e1071 and of the core itself and
2008 Apr 02
1
"[<-" plus drop-type extra argument
Hello
I am writing a replacement method for an S4 class and want to pass
an additional argument to "[<-"() along the lines of "["()'s "drop"
argument.
Specifically, I have an S4 class, call it "foo", with a slot 'x'
that is a
vector and a slot 'NC' that is a scalar.
I want to be able to pass a Boolean argument to the