search for: basebud

Displaying 20 results from an estimated 27 matches for "basebud".

2006 Mar 03
1
Fwd: Re: calling R's library using C
...lready told you, you are so wrong that it is unclear why > we > > bother helping you for matters clearly stated in manuals you continue to > > ignore. > > > > Anyway -- on my Debian system, your file compiles, builds and runs "fine": > > > > edd at basebud:/tmp> gcc -o globetrotter -I/usr/share/R/include globetrotter.c > > -lm -lRmath -L/usr/lib/R/lib -lR > > edd at basebud:/tmp> LD_LIBRARY_PATH=/usr/lib/R/lib ./globetrotter > > 0.040160 > > 0.040160 > > > > That said, I put "fine" in quotes as you...
2006 Mar 02
1
calling R's library using C
Hi, Thanks, everyone for all the help! So, here is my calling function in C (called test.c): #include<stdio.h> #include<stdlib.h> #include<Rmath.h> int main(void) { printf("%f \n",pchisq(2.,7., 1, 0)); printf("%f \n",pnchisq(2.,7.,0., 1, 0)); return EXIT_SUCCESS; } I compile using: gcc test.c -I/usr/lib/R/include
2006 Jul 26
2
mean(NA) returns -(1+.Machine$integer.max) (PR#9097)
Full_Name: Benjamin Tyner Version: 2.3.0 OS: linux-gnu (debian) Submission from: (NULL) (71.98.75.54) > mean(NA) returns -2147483648 on my system, which is -(1+.Machine$integer.max) > sessionInfo() Version 2.3.0 (2006-04-24) i686-pc-linux-gnu attached base packages: [1] "methods" "stats" "graphics" "grDevices" "utils"
2004 Jun 22
1
R mathlib
Hello, dear R experts! I run R on Debian 'sarge' platform. There is 'r-mathlib' package in Debian distribution, which is described as: $ dpkg --status r-mathlib ... This packages provides the libRmath shared and static libraries which can be called from standalone C or C++ code. Well, I use runif() function in test_runif.c: #include <Rmath.h> main() { // ...
2005 Dec 21
2
(Debian Bug 344248): R segfaults when pressing Delete (PR#8420)
..., there are no rules here - we're trying to accomplish something. -- Thomas A. Edison --CE+1k2dSO48ffgeK Content-Type: message/rfc822 Content-Disposition: inline Return-path: <> X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on basebud.nulle.part X-Spam-Level: X-Spam-Status: No, score=-2.5 required=4.9 tests=BAYES_00,FORGED_RCVD_HELO autolearn=ham version=3.1.0 Received: from sccrmhc11.comcast.net ([63.240.77.81]) by master.debian.org with esmtp (Exim 4.50) id 1Ep3A7-0001sJ-Py for edd at debian.org; Wed, 21 Dec 2005 06:33:4...
2004 Apr 14
2
again question about nmath/standalone
Hello, I forgot to tell you that I am using Linux OS. And I can?t find directory "src/nmath/standalone". I will send you the test code I am using and the whole operation process. [credsim at confsys ~/src]$ gcc test1.c -o test1 -lRmath test1.c: In function `main': test1.c:18: warning: assignment makes pointer from integer without a cast test1.c:19: warning: assignment makes
2007 May 31
1
Problems when linking to R shared library
Folks, I'm fairly sure that I'm doing something stupid, but I'm getting a few really strange results from *some* of the distributions, but by no means all, when I link directly to the R shared library. I've tried this on both Windows with the precompiled Mingw binary of R-2.5.0 (compiling my code with MinGW-3.4.2), and by building R-2.5.0 on Mandriva Linux with gcc-3.4.4 and
2006 Feb 20
2
R CMD config --cppflags buglet
...pendent files should be in /usr/share, not /usr/lib). While I more or less just told him to get lost, I think it was mostly BDR who actually added support for this over the summer -- so a public Thanks! first. As of a few weeks ago, I now activate this in the Debian builds so that we get edd at basebud:~> ls -F /usr/share/R doc/ include/ share/ The downside of this that the maintained assumption of $R_HOME/share $R_HOME/include no longer works. I was updated a number of packages for Quantian yesterday and noticed that (at least) two packages had hard-coded links to $R_HOME/include in...
2005 Dec 21
1
(Debian Bug 344248): R segfaults when pressing Delete (PR#8422)
...e trying to accomplish something. > -- Thomas A. Edison > > --CE+1k2dSO48ffgeK > Content-Type: message/rfc822 > Content-Disposition: inline > > Return-path: <> > X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on basebud.nulle.part > X-Spam-Level: > X-Spam-Status: No, score=-2.5 required=4.9 tests=BAYES_00,FORGED_RCVD_HELO > autolearn=ham version=3.1.0 > Received: from sccrmhc11.comcast.net ([63.240.77.81]) > by master.debian.org with esmtp (Exim 4.50) > id 1Ep3A7-0001sJ-Py > for edd at deb...
2007 Apr 01
2
commandArgs usage and --args invokation
Dear R experts: I am a bit stymied by how the argument picking-off works in R batch file usage. $ cat commandArgs.R cat(" Command Line Arguments were ", commandArgs(), "\n"); $ /usr/bin/R CMD BATCH commandArgs.R --args 1 2 3 $ /usr/bin/R --args 1 CMD BATCH commandArgs.R ... I am now getting into interactive mode ?! I guess it really is skipping the rest of the command line
2005 Feb 22
6
rodbc or unixodbc error
Hi, I'm trying to establish a connection to a MySQL database, and am using the rodbc package for it. This is in a GNU/Debian Linux box, with the corresponding Debian unstable packages. I can login to my MySQL databases from any shell and directory, so the problem is probably not there. Here's an example of what I'm doing: R> odbcConnect("test",
2005 Jan 30
2
Rinternals.h and iostream don't play nice together'
Hi, Consider the following file. ******************************* foo.cc ******************************* #include <R.h> #include <Rinternals.h> #include <iostream> ******************************* R CMD SHLIB foo.cc gives scads of errors. I've use C++ extensively with R before (using C linkage) but not with Rinternals.h. I'm puzzled. The errors make no sense to me. Am
2004 May 11
1
installing mgcv (Knoppix/Debian unstable)
Just in case anyone cares or is hitting the same problem: to install current mgcv (1.0-5) on 1.9.0 on Knoppix/Debian unstable I had to: # cd /usr/lib # ln -s /usr/lib/atlas/libblas.so.3 libblas-3.so # ln -s /usr/lib/atlas/liblapack.so.3 liblapack-3.so Otherwise compilation couldn't find -lblas-3 or -llapack-3 (I could have gotten away with the links in /usr/lib/atlas instead of /usr/lib,
2006 Jul 26
1
R CMD SHLIB flags
How can one specify multiple extra flags to R CMD SHLIB? The example in R-exts section 5.5 MAKEFLAGS="CFLAGS=-O3" R CMD SHLIB *.c works for a single flag, but when I try MAKEFLAGS="CFLAGS=-g -O2 -Wall" R CMD SHLIB *.c only the first flag is used and the rest seem to be ignored (version 2.3.1, Mac OS X) -thomas Thomas Lumley Assoc. Professor, Biostatistics
2005 Oct 27
3
its dates masked by chron
I built R 2.2.0 from source on my debian machine yesterday and updated all packages. My problem is that "dates" function from its, that my code heavely uses is now masked by "dates" from chron. How can I specify tehat I want to use dates from its or how can I prevent it from being masked? > library(its) Loading required package: Hmisc Hmisc library by Frank E Harrell Jr
2005 Oct 31
0
New version of RQuantLib
...and QuantLib headers). We also have an experimental OpenGL demo of option analytics visualisation via the rgl package. However, there are some concerns over stability, especially on platforms with ATI graphics card. If you want to try it, do > library(RQuantLib) > source(url("http://basebud.nulle.part/~edd/code/rquantlib/OptionSurfaces.R")) and let us know how it worked (or not) and what your platform is. We still would like to release this in an upcoming revision. A more fail-safe way, using animated gifs of the demo's output, is available at http://dirk.eddelbuettel...
2006 Mar 27
1
no acceptable C compiler
dear R users not sure why I am not able to install tkrplot. > install.pacakges ("tkrplot", dependencies=TRUE) ... Configure: error: no acceptable C compiler found in $path ... well, I am using debian testing 2.6.15, R Version 2.2.1 (2005-12-20 r36812) #whereis gcc gcc: /usr/lib/gcc thank you --------------------------------- [[alternative HTML version
2005 Aug 18
1
0/0, R segfaults
Hi, I noticed that when I was conducting some calculation involving finding correlation coeficients, R stopped abnormally. So I did some research, and find out that 0/0 was the culprit. For sure 0/0 is not a valid expression, but R should give a warning, an error msg or NaN instead of segmentation fault. I am using R 2.1.0 under Gentoo Linux. My GCC version is 3.3.5. Xing
2005 Oct 31
0
New version of RQuantLib
...and QuantLib headers). We also have an experimental OpenGL demo of option analytics visualisation via the rgl package. However, there are some concerns over stability, especially on platforms with ATI graphics card. If you want to try it, do > library(RQuantLib) > source(url("http://basebud.nulle.part/~edd/code/rquantlib/OptionSurfaces.R")) and let us know how it worked (or not) and what your platform is. We still would like to release this in an upcoming revision. A more fail-safe way, using animated gifs of the demo's output, is available at http://dirk.eddelbuettel...
2007 May 21
1
Installing packages from command line on Linux RHEL4
Greetings. I am a System Administrator, and thus have very little knowledge of R itself. I have been asked to install a list of some 200 packages (from CRAM) to R. Rather than installing each package manually, I was hoping I could script this. I've written a BASH script that hopefully will do this, but I'm wondering about the Mirror Selection portion of the installation process.