Displaying 20 results from an estimated 8000 matches similar to: "dyn.load() error: bad external relocation length"
2003 May 16
1
Reloading a shared library with dyn.load
Hi,
I'm using dyn.load to load a shared library (compiled from C
code) into R. If I dyn.unload it and then dyn.load it again, I
get an hourglass icon in Rgui (R 1.7.0, Win 2000), and it
just sits there forever. I can't press Escape to stop the
current computation, but I can close Rgui without resorting to
using the Task Manager.
Is it a problem with my use of R_alloc? Do I need
2003 Dec 09
1
R Interface handholding
Hello,
I need a bit of handholding with R, specifically, with writing
packages for it. I'm a systems programmer, and am, on the request
of several users of our software, working on generating R interfaces.
For starters, I've written the following R function (which compiles):
SEXP myincr(SEXP Rinput)
{ // Returns input integer incremented by one
int input;
SEXP returner;
PROTECT(Rinput =
2006 Feb 01
1
R CMD check barfs at 'suggested' package
I have been running R CMD check for the first time on of our own
packages, which otherwise builds, installs and runs just fine. The
package depends on package akima and suggests package multtest;
suggesting multtest is indicated because a) it loads a lot of other
Bioconductor packages, very slowly, and b) it is only needed for one
specific subroutine, which executes require(multtest)
2005 Oct 18
1
RMySQL problems
I get the following error trying to connect to a MySQL database:
> library(RMySQL)
Loading required package: DBI
> drv<-dbDriver("MySQL")
> con<-dbConnect(drv, user="hothand", password=xxx,
host="localhost", dbname="hh03");
Error in mysqlNewConnection(drv, ...) : RS-DBI driver: (could not
connect hothand at localhost on dbname
2006 Apr 19
2
par(tmag) question
Dear list,
I'm trying to understand the graphical parameters by a systematic exploration
of the par() function (if you are interested by the result it's here
http://pbil.univ-lyon1.fr/R/fichestd/tdr75.pdf, the comments are all in
french but it's pure R code under Sweave).
I have a problem with par(tmag) illustrated by the following code:
2006 Mar 09
1
lsa and Rstem?
Dear r-helpers,
I can't get lsa to run because:
> library(lsa)
Loading required package: Rstem
Error in library(pkg, character.only = TRUE, logical = TRUE, lib.loc
= lib.loc) :
'Rstem' is not a valid package -- installed < 2.0.0?
In addition: Warning message:
cannot create HTML package index in: make.packages.html()
> install.packages('Rstem')
Warning in
2005 Jul 19
1
S4 Dispatching
Is it possible for S4 to (continue) dispatch to a class
created during dispatching? The code below doesn't work;
is this not possible or have I ommitted something?
Concept was to create a SEXP with R_AllocatePtr, give it
a class attribute, and continue dispatch. Example code
below omits multiple parameters that can be different types.
Essentially, any parameter would be converted to an
2006 Mar 16
3
sub returns garbage (PR#8687)
Full_Name: Todd Bailey
Version: 2.1
OS: Mac OS-X 10.4.3
Submission from: (NULL) (87.112.79.124)
sub returns garbage in some strings when replacing something with nothing and
fixed=TRUE. For example:
> a=c('hello','hello'); sub('lo','',a,fixed=TRUE)
[1] "hel" "hel\0\0"
> a=c('hello','hello');
2005 Oct 26
1
Pb encountered with demos
Hi all,
I've just installed R on my Mac & PC.
The base demo run fine.. But I'm encountering several pb with some packages
(installed using CRAN binaries using the menu)
- Lattice:
> demo(lattice,package='lattice')
demo(lattice)
---- ~~~~~~~
Type <Return> to start :
> require(grid)
[1] TRUE
> old.prompt <- grid.prompt(TRUE)
> old.settings
2006 Feb 08
1
invalid graphics state using dev.print (fwd)
On Mon, 6 Feb 2006 18:12, Simon Urbanek wrote:
> On Feb 6, 2006, at 5:24 PM, Paul Roebuck wrote:
>
>> Tried on R-Sig-Mac with no responses, but I need some kind
>> of answer.
>> [...]
>> Does the following work on your system?
>
> Interesting, no, it doesn't either. For png and pdf I use
> Quartz + quartz.save (it produces much nicer results) so
> I
2005 Jul 13
1
unexpected par('pin') behaviour
hi everybody,
I noticed the following: in one of my scripts 'layout' is used to
generate a (approx. square) grid of variable dimensions (depending on
no. of input files). if the no. of subplots (grid cells) becomes
moderately large (say > 9) I use a construct like
###layout grid computation and set up occurs here###
...
opar <- par(no.readonly = T);
2005 May 18
1
source-only package, but still: Error: package 'simple' was built for powerpc-apple-darwin7.9.0
I have a number simple R functions written for the biologists I work
with. These functions will evolve, and the documentation will get
steadily better. I hope to put them in a package on a local
webserver, along with lots of help files, so that the users can easily
update their installation.
The functions are pure R, with no compiled code, but alias, I cannot figure out
how to build this
2007 Mar 19
3
Rinternals.h and undefined symbols
Hi,
I'm trying to register my native routines using R_registerRoutines
(...). I can compile the code, but the loader cannot resolve the symbol:
undefined symbol:
_Z18R_registerRoutinesP8_DllInfoPK12R_CMethodDefPK15R_CallMethodDefS3_S6
_
$ nm bgx.Rcheck/bgx/libs/bgx.so | grep R_registerRoutines
U
_Z18R_registerRoutinesP8_DllInfoPK12R_CMethodDefPK15R_CallMethodDefS3_S6
2006 May 23
2
multiple plots with par mfg
Hi,
I'm trying to add points to 2 plots on the fly using par(mfg=vector)
so switch between them. However, the appropriate scales aren't
switched when changing from one plot to another, e.g.
par(mfcol=c(2,1))
plot(1,1, col="blue") # blue plot
plot(1.2,1.2, col="red") # red plot
points(1.1,1.1) # appears to bottom left of red point
par(mfg=c(1,1)) #
2005 May 19
1
Problems installing wxRuby on Mac OS X 10.3.9
I tried to install wxRuby on my Mac, but I get the following error.
g++ -fno-common -g -O2
-pipe -fno-common `wx-config --cxxflags` -I.
-I/usr/local/lib/ruby/1.8/powerpc-darwin7.9.0
-I/usr/local/lib/ruby/1.8/powerpc-darwin7.9.0 -I. -x objective-c++
-c htmleasyprinting.cpp
htmleasyprinting.cpp: In static member function `static VALUE
WxHtmlEasyPrinting::PrinterSetup(int, VALUE*,
2006 Jun 14
2
loading library from network share (PR#8982)
Full_Name: roy kuraisa
Version: 2.2.1
OS: Windows XP SP2
Submission from: (NULL) (155.91.28.232)
When loading a library from network share drive (e.g., \\nnn\f1\f2\p1), when
First.lib is called, the libray name contains "/" instead of "\" resulting in an
invalid Windows filepath.
Here's an example:
>From R,
>
2006 Jan 24
6
R vs. Excel (R-squared)
Hello All-
I found an inconsistency between the R-squared reported in Excel vs.
that in R, and I am wondering which (if any) may be correct and if
this is a known issue. While it certainly wouldn't surprise me if
Excel is just flat out wrong, I just want to make sure since the R-
squared reported in R seems surprisingly high. Please let me know if
this is the wrong list. Thanks!
2006 Mar 23
2
invalid variable type in model.frame within a function
Dear expeRts,
I came across the following error in using model.frame:
# make a data.frame
jet=data.frame(y=rnorm(10),x1=rnorm(10),x2=rnorm(10),rvar=rnorm(10))
# spec of formula
mf1=y~x1+x2
# make the model.frame
mf=model.frame(formula=mf1,data=jet,weights=rvar)
Which gives the desired output:
> mf
y x1 x2 (weights)
1 0.8041254 0.1815366 0.4999551 1.4957814
2
2012 Sep 19
2
Rcmd check problem
Hi, all.
I was trying to build my R package with R 2.15.1 32bit and win7.
I basically follow the routine in Steven Mosher's blog
http://stevemosher.wordpress.com/step-10-build/
After I fixed the path, and built the skeleton of the package, I started
command prompt and used the following commands in building my package
Rcmd check myPackageName
Rcmd build myPackageName
Rcmd check
2005 Aug 15
2
R CMD check failure on minimal code
I have a peculiar problem that I'm sure is a simple one, but I can't figure
out what my mistake is. Can someone enlighten me? I have a simple file,
class.R:
##
setClass("abc",representation(a = "character", b = "ANY"))
I have a package directory ExpressCGH1 made with package.skeleton. The
package happily builds and installs, but R CMD check fails with