Displaying 20 results from an estimated 400 matches similar to: "source("filename") vs. input from command-line"
2002 Jan 18
3
Shared libraries for use with R
I am moving my first steps in writing and compiling C code and calling
it from R. (I am also new to shared libraries...) My
problem is that my C code uses a C function contained in
another library (".a", not ".so" - is that the problem?).
This is how I compile the file with the functions I want to call from R:
cd /export/home/gpetris/
R SHLIB tryit.c
cc
2003 Feb 06
2
function 'silhouette' in package 'cluster'
Dear all,
I am trying (without much success) to use the fuction 'silhouette'.
Would anyone encountered that before (or would know where I am wrong ?)
Please find below the R ouput. Thanks in advance,
L.
> s <- silhouette(ct, as.dist(metric))
Error in "[<-"(*tmp*, iC, "sil_width", value = s.i) :
number of items to replace is not a multiple of replacement
2004 Jan 21
1
silhoutte.default bugs
Hello all,
This might have been fixed in later versions (I am using R1.7.0), r-help
archive contains messages reporting similar problems but no reports of
codes fixes. I have encountered a couple of problems using the
silhouette function. one occurs when the clustering contains clusters
composed of 1 element (Martin Maechler posted code few months ago that
fixes a similar problem that occurs
2004 Sep 20
1
compilation failed for package
Hello,
I am new to R on Linux (and to LINUX), running a 1.9.1 on a Linux MDK10.0. When updating or installing different packages, I get messages like this (under), the package doesn't install. Can anyone help me? I know this is all to little information, but I don't know were to start. I think there is something wrong in how or were the C++ or fortran compilator is installed??
Thanks, Geir
2016 Apr 20
0
Matrix: How create a _row-oriented_ sparse Matrix (=dgRMatrix)?
>>>>> Henrik Bengtsson <henrik.bengtsson at gmail.com>
>>>>> on Tue, 19 Apr 2016 14:04:11 -0700 writes:
> Using the Matrix package, how can I create a row-oriented sparse
> Matrix from scratch populated with some data? By default a
> column-oriented one is created and I'm aware of the note that the
> package is optimized for
2007 Jun 04
2
locked environment and inheritance
Hi,
I have a S3 package with namespace called "myS3Pkg". Inside my package I would like to create
a S4 class which extends (adds 2 slots) another S4 class from some other package. The class
should be created in "myPkg" environment (and not global environment).
Using:
setClass("myS4class", representation("otherS4class", mydata = "numeric"),
2015 Mar 19
6
RFC: Matrix package: Matrix products (%*%, crossprod, tcrossprod) involving "nsparseMatrix" aka sparse pattern matrices
This is a Request For Comment, also BCCed to 390 package maintainers
of reverse dependencies of the Matrix package.
Most users and package authors working with our 'Matrix' package will
be using it for numerical computations, and so will be using
"dMatrix" (d : double precision) matrix objects M, and indirectly, e.g., for
M >= c will also use "lMatrix" (l:
2005 Dec 29
1
trouble with S4 methods for group "Summary"
Hello. This question concerns the Methods package. I have created a
new class and am trying to set a method for it for S4 group generic
"Summary". I have run into some signature problems. An example:
> setClass("track", representation(x="numeric", y="character"))
[1] "track"
> setGeneric("max", group="Summary")
2016 Apr 19
2
Matrix: How create a _row-oriented_ sparse Matrix (=dgRMatrix)?
Using the Matrix package, how can I create a row-oriented sparse
Matrix from scratch populated with some data? By default a
column-oriented one is created and I'm aware of the note that the
package is optimized for column-oriented ones, but I'm only interested
in using it for holding my sparse row-oriented data and doing basic
subsetting by rows (even using drop=FALSE).
Here is what I
2005 Jun 14
1
operators as S4 methods
Dear all,
I need to re-define some mathematical operators (+, *, /, etc) for an S4
class based on array. All references I have found (S Programming, Green
Book) show how to define S3 methods for this (like in page 89 of S
Programming for "-.polynomial"). What is the preferred S4 way for doing
this? I hope I haven't missed some obvious piece of documentation.
Many thanks,
Iago
2005 Aug 29
0
Core dump during lazy loading of "survival" at installation time (PR#8106)
Full_Name: D Kreil
Version: 2.1.1
OS: HP-UX B.11.23 U ia64 0029870451 unlimited-user license
Submission from: (NULL) (62.178.15.60)
I sadly get a core-dump during installation, when it tries to lazyload package
survival. Any idea what to do about this?
Best regards,
D.
...
include -fPIC -g -O2 -c survindex2.c -o survindex2.o
gcc -I/bi/common/src/R-2.1.1/include
2004 Sep 21
0
SV: compilation failed for package
Thanks to Roger Bivand, my problem was solved. binutils 2.14 was updatet to binutils 2.15, as indicated under.
Geir Helge Systad
Norwegian Institute for Nature Research
Arctic Ecology, Polarmilj??senteret, N-9296 Troms??, Norway
Adress aug-04 to feb-05:
Albert Pettersonsvei 13, N-5750 Odda
fax +47 85 03 82 14
phone +47 53 64 24 94
mobil +47 91 63 70 55
E-mail: geir.systad at nina.no
2006 Jul 24
1
conflict of package "Matrix" and summary of lme object
After loading the package "Matrix" (version 0.995-12), using the summary
function with an lme (package nlme version 3.1-75) object results in an
error message saying
Fehler in dim(x) : kein Slot des Namens "Dim" f?r dieses Objekt der
Klasse "correlation"
(translated: 'Error in dim(x) : no slot of the name "Dim" for this
object of class
2002 May 07
2
passing a matrix to C++ with .C()?
It seems that it is possible to pass a matrix to C++ by using .C()
The R part of the interface should be something like:
('C++function', matrix, numberRows, numberColumns )
...I guess.
The C++ part of the interface could be something like
void C++( double matrix[][], int numberRows, numberColumns )
but C++ requires to indicate the number of columns, that is, instead of
matrix[][], it
2015 Mar 19
0
RFC: Matrix package: Matrix products (%*%, crossprod, tcrossprod) involving "nsparseMatrix" aka sparse pattern matrices
Hi Martin
I got stung by this last week.
glmnet produces a coefficient matrix of class ?dgCMatrix?
If a predictor matrix was created using sparseMatrix as follows,
one gets unexpected results, as this simple example shows.
My fix was easy (I always convert the predictor matrix to class ?dgCMatrix? now)
Trevor
> y=Matrix(diag(4))
> y
4 x 4 diagonal matrix of class "ddiMatrix"
2015 Mar 20
0
RFC: Matrix package: Matrix products (%*%, crossprod, tcrossprod) involving "nsparseMatrix" aka sparse pattern matrices
Hi Martin,
package arules heavily relies on ngCMatrix and uses multiplication and
addition for logical operations. I think it makes sense that in a mixed
operation with one dgCMatrix and one ngCMatrix the ngCMatrix should be
"promoted" to a dgCMatrix.
The current behavior of %*% and friends is in deed confusing:
> m <- matrix(sample(c(0,1), 5*5, replace=TRUE), nrow=5)
>
2005 Apr 07
3
R-beta 2004-04-07 build failed on AIX
I thought I'd give this another shot before the official release. I tried
building R-beta_2004-04-07 on the AIX system that I have access to, and it
seemed to failed at lazy-loading survival. I'd very much appreciate any
pointer on what to try or look for next.
1. I set OBJECT_MODE to 64 for building 64-bit binary.
2. I edited config.site with the following:
CC="xlc_r"
2005 Feb 21
0
want to call R from aplatform written i strict ANSI C
Hi,
I would like to connect my GHA-system to R and to deliver the
library to users of R.
could you give me a comprehensive example containing the step by step
procedure to:
1. create a callable library with R binaries (not having a standalone
version of R with its own main()). If possible, I would like to run the
system on unix,alpha,linux computers as well as on IBM's parallel
2005 Feb 25
0
Fwd: want to call R from aplatform written i strict ANSI C
Hi,
I sent the below message to r-devel but received no answer. I would like
to contribute my system but I need som advice concerning the
connections. Is my proposal of any interest to you?
regards
Ralf ?stermark
----- Forwarded message from Ralf ?stermark <rosterma at abo.fi> -----
Date: Mon, 21 Feb 2005 11:35:21 +0200
From: Ralf ?stermark <rosterma at abo.fi>
Reply-To: Ralf
2001 Mar 19
2
Samba and java
Hi,
I have sent this message before does any one have any ideas? We really need
to be able to run Java class files from the root of a samba share. I think
that the problem may have to do with Samba file name mangeling and that this
may be preventing the java virtual machine from finding the calls file
through the classpath environment variable.
Here is the original message.
Can any one help?
We