Displaying 20 results from an estimated 500 matches similar to: "Neophyte question re using dyn.load and accessing c functions"
2010 Feb 18
3
R CMD check: OK in LINUX. Crashes in Windows!
Hi,
I have followed the recommended steps for creating a package (rctest). As of
now, my goal is simply to understand how various pieces fit together. The
package includes:
(1) C code with source in sub-directories, compiled to create a static
library.
(a) There is a single C-struct (dns) a simple 'matrix': {int m; int n;
double *d;}
(b) C code to create random matrix of a certain size.
2002 Oct 22
0
dyn.load()
Dear R-help,
I am trying to use routines written in C and Embedded SQL on Sybase in R using dyn.load().
I compiled a couple of test functions into a .so file which I tried to load with R's dynl.load(). This is what happened:
> dyn.load("libRClib.so")
Error in dyn.load(x, as.logical(local), as.logical(now)) :
unable to load shared library
2002 Feb 19
1
Typo fix for samba 2.2.3a source/smbd/trans2.c
Just a couple of quick fixes for trans2.c and README in samba-2.2.3a.
--- source/smbd/trans2.c.old Tue Feb 5 14:37:55 2002
+++ source/smbd/trans2.c Wed Feb 20 10:26:16 2002
@@ -2062,7 +2062,7 @@
if(!S_ISLNK(sbuf.st_mode))
return(UNIXERROR(ERRSRV,ERRbadlink));
#else
- return(UNIXERROR(ERRDOS,ErrNotALink));
+
2006 Jun 30
0
VMS (Alpha) Platform - Neophyte questions
Greetings - have downloaded , 'attempted' install of 2.2.8 on OpenVMS Alpha
systems (7.2 *and* 7.3)
Many problems, up to and including total failure to succeed.
Followed instructions (DOWNLOAD, UNZIP "-V", BACKUP.).
COMPILE FROM SOURCE - failed, although the Dec CC compiler is one I use
frequently.
LINK-ONLY - many errors
ADDED SNPRINTF.OBJ to the OLB,
2009 Oct 14
1
R neophyte question.
Hi all,
I'm currently working through the "Beginner's Guide to R" (Zurr et al.) and
I'm wondering about the first exercise in chapter 3:
I imported the data from BirdFluCases.txt and executed the 'names' and 'str'
functions as follows:
Bird = read.table(file='C:\\rbook\\BirdFluCases2.txt', header=TRUE)
names(Bird)
[1] "Year"
2007 May 09
0
Neophyte needs help!
Hi All,
Real neophyte here, to both backgroundrb and ruby/rails in general.
(Hey, we''ve all got to start somewhere, right!) :)
I''ve just been playing around with the example code at
http://backgroundrb.rubyforge.org/ , and trying to get all
the pieces to work (btw, I''m using version 0.2.1).
I did a ''generate worker example'', which created an
2006 Mar 07
10
[PREVIEW] SmallCap
Somebody suggested SmallCap and that sounds great. This is by no stretch
of the imagination Capistrano, so it might better be named MicroCap but
it may be useful to some who have (as I do) modest needs in this regard,
especially for on-server versioning.
Here''s a preview of the usage:
Usage: ruby smallcap.rb [options]
-s, --server=SERVER Copies app to specified
2005 Oct 31
4
Import help (neophyte)
Hi, I have no experience with R and I'm finding the manuals a bit obtuse
and written as if I already understood R.
I'm trying to import a csv file from a floppy and it's not working. The
code I'm using is
read.table("F:\GEORGIA\species_richness\SR_use.csv", sep=",", header =
TRUE, row.names = 1)
I'm assuming that this command is case sensitive so
2006 Feb 20
3
Boxplot Help for Neophyte
R helpers
I am getting to grips with R but came across a small problem today that I
could not fix by myself.
I have 3 text files, each with a single column of data. I read them in
using:
myData1<-scan("C:/Program Files/R/myData1.txt")
myData2<-scan("C:/Program Files/R/myData2.txt")
myData3<-scan("C:/Program Files/R/myData3.txt")
I wanted to produce a
2003 Sep 14
1
R on BeOS
Hello,
I have compiled R-1.7.1 on Beos R5 (x86) and got it running.
The modules x11 and internet dont work (so the only working display is
postscript()).
The libraries all compile, but there is a problem with methods.
I get the following error when i make methods:
dumping R code in package 'methods'
Error in .Call("R_initialize_methods_metadata", table, PACKAGE =
2002 Jul 19
1
smbclient & /etc/printcap Why does my printconf-gui doesnt work? (samba 2.2.3a) Red Hat Linux 7.2 enigma-
I have played around with samba now for quite a while but couldnt print on my
win2k box with koffice. with the command line smbclient it works:
smbclient //server/hpdeskje -N -P -U user -c 'print hello'
prints a text (from the file hello) "Hello World"
Also a print to file file off my win2k box would print fine with smbclient.
Only, I cant quite find out how the printcap
1999 May 24
1
sum(is.na(c(...)) -> negative number; bug or feature?
As I understand it, sum() treats a logical vectors as 1's and 0's, so
that
> is.logical(c(FALSE,TRUE,FALSE))
[1] TRUE
> sum(c(FALSE,TRUE,FALSE))
[1] 1
However, summing the results of an is.na() yields a
negative number. Eg
> is.na(c(1,NA,3))
[1] FALSE TRUE FALSE
> is.logical(is.na(c(1,NA,3)))
[1] TRUE
> sum(is.na(c(1,NA,3)))
[1] -1
(This is from R Version 0.64.0,
1999 Apr 19
1
Algorithm used by glm, family=binomial?
Does anyone know what algorithm R uses in glm, family=binomial (i.e. a
logit model)?
I assume that it's in the source somewhere, but I wasn't able to find
it. I'd like to know
what file it's in (in a unix distribution of R).
Thanks for your help.
---------------------------
Barnet Wagman
wagman at enteract.com
1361 N. Hoyne, 2nd floor
Chicago, IL 60622
773-645-8369
1999 Apr 25
1
Catching errors?
Is there anyway (other than 'repeat'') of catching the errors that R
throws?
Thanks,
-------------------
Barnet Wagman
wagman at enteract.com
773-645-8369
1361 N. Hoyne
Chicago, IL 60622
--------------------
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send
1999 Apr 30
1
Question on the idiom: start <- coef; start[fit$pivot] <- coef
I wonder if someone could explain how the following R idiom works (it's
used in
glm.fit).
start <- coef
start[fit$pivot] <- coef
coef is a vector of coefficients, set by .Fortran("dqrls", ...).
fit$pivot is a vector of integer indexes (indicating how dqrls permuted
the columns
of x). If coef has n elements, fit$pivot is a permutation of seq(1,5).
start[fit$pivot]
1999 Apr 19
2
A couple problems installing 0.64 (under linux, redhat 5.2)
I'm encountering a couple problems configuring and making R 0.64 under
linux, redhat 5.2
These problems didn't occur when I build 0.63.2
Any suggestions would be greatly appreciated.
(1) configure generates the warning:
"configure: warning: Cannot determine how to create shared libraries.
Please set CPICFLAGS, FPICFLAGS and SHLIBLDFLAGS in `config.site'."
I'm not
2000 May 10
0
Polynomial Distributed Lags?
Has anyone writtent an R function for estimating linear
models with polynomial distributed lags?
Thanks,
Barnet Wagman
wagman at enteract.com
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not
2016 Mar 23
0
Fwd: Re: r-base installation fails on Ubuntu 14.04
He was suggesting to upgrade to 15.10 if you needed the newer fortran
for some reason (or other newer things only in backports or not even there).
I also mostly run LTS versions of Ubuntu, especially in my research
group where I manage our cloud/servers. Which also matches the computer
cluster available to me. That said I also stick to the stock packages
for all the basic underlying libraries
2016 Mar 23
2
r-base installation fails on Ubuntu 14.04
On 03/23/2016 10:23 AM, Dirk Eddelbuettel wrote:
> On 23 March 2016 at 09:35, Barnet Wagman wrote:
> | I am unable to install R on an up to date (i.e. apt upgraded) Ubuntu
> | 14.04 system. According to
> | https://cran.r-project.org/bin/linux/ubuntu/README (and many other sources),
> | R is available for this version of Ubuntu (which is a stable version).
> |
> | I currently
2003 Oct 21
1
Patches for DBI/RMySQL "valueClass" problem?
According David Jame's response to my earlier question, there is a
problem with setGeneric.setMethod in R 1.8.0 that affects DBI and RMySQL.
Is there a fix for this? David Jame's refers to an 'R-patched version'
but I haven't seen anything like this on CRAN. Would going back to an
older version of R solve the problem?
Thanks,
Barnet Wagman
"David James wrote: