similar to: Can configure.ac detect 64 bit R?

Displaying 20 results from an estimated 2000 matches similar to: "Can configure.ac detect 64 bit R?"

2006 Dec 08
2
dyn.load and function calls without 'PACKAGE' argument
I'm writing a package that interfaces to the FAME database, via a library of compiled C routines accessible through a Linux .so file. My .onLoad() function loads the .so like this: dyn.load("/opt/fame/timeiq/lib/linux_x86/libjchli.so", local = F) and after that I also load my own fame.so via library.dynam("fame", package = "fame") The code in fame.so uses
2009 Aug 17
4
Calling C functions with value parameters
One hassle I could do without is the necessity of writing C wrapper functions like this: void fameInit(int *status){ cfmini(status); return; } when I want to call a library function (cfmini, in this case) that takes an int argument. The .C interface only lets me pass a pointer to an int, rather than the int itself. Is there any chanch that .C could be enhanced to allow passing arguments by
2015 Dec 05
1
Compile error about using RInside on windows enviroment
I'm going to using RInside on windows enviroment. I installed all tools and packages according to Dirk's instruction. My R installation reside in d:\hli\programfiles\R-3.2.2. There's no problems with folders with spaces. The rtools is installed in d:\hli\programfiles\Rtools and MinGW in d: \hli\programfiles\MinGW. The R_HOME is set to d:\hli\programfiles\R-3.2.2. I
2007 Feb 12
3
How to override functions in namespaces?
In package A I have askForString(), which asks the user for a string. Also in package A I have defined ssh(), which calls askForString(). Package B has package A as a prerequisite. In package B I redefine askForString() to take advantage of a nicer user interface made available by B, namely the Emacs mini-buffer prompt. Packages B and A are both on the search path, with B ahead of A. If I call
2005 Feb 25
2
return from nested function?
Is is possible from within a function to cause its caller to return()? I have a function that lets user make edits to certain objects, and then checks that the edited objects still make sense. If they don't, the function puts up a notifier that the edits are being discarded and then returns, something like: if(badEdits){ notifyDialog("bad edits will be ignored")
2004 Jun 03
1
GAM question
I am trying to use R to do a weighted GAM with PA (presence/random) as the response variable (Y, which is a 0 or a 1) and ASPECT (values go from 0-3340), DEM (from 1500-3300), HLI (from 0-5566), PLAN (from -3 to 3), PROF (from -3 to 3), SLOPE (from 100-500) and TRI (from 0-51) as predictor variables (Xs). I need to weight each observation by its WO value (from 0.18 to 0.98). I have specified the
2010 May 14
2
Subscripting a matrix-like object
I have an S3 class called "tis" (Time Indexed Series) which may or may not have multiple columns. I have a function "[<-.tis" that I've reproduced below. My question is this: inside of "[<-.tis", how can I distinguish between calls of the form x[i] <- someValue and x[i,] <- someValue ? In either case, nargs() is 3, and looking at the values
2010 May 14
2
Subscripting a matrix-like object
I have an S3 class called "tis" (Time Indexed Series) which may or may not have multiple columns. I have a function "[<-.tis" that I've reproduced below. My question is this: inside of "[<-.tis", how can I distinguish between calls of the form x[i] <- someValue and x[i,] <- someValue ? In either case, nargs() is 3, and looking at the values
2009 Jan 20
1
Problem with FAME
Dear All, I wonder whether anyone has an experience with FAME package written by Jeff Hallman. All my attempts to send him the following problem report did not succeed (the mail system says that my e-mail could not be delivered), so I turn for help to this list. I tried to use your FAME package written for R, but somehow I cannot get it working. I am using Windows XP and the newest R
2007 Feb 02
2
Help with OS X (BSD) ps command
My fame package has a function that checks to see if a FAME SERVER process is already running. On Linux, I can do this in one of two ways: pid <- Sys.getpid() user <- Sys.info()["user"] cmd <- paste("pgrep -fU", user, "-P", pid, "'FAME SERVER'") fameRunning <- as.logical(length(system(cmd, intern = T))) or I can use cmd
2007 Jul 12
5
In creating a Windows binary package (zip), how do I make the installation configurable
I would like to create a binary package for Windows which when installed will give the user an option of whether to install one version or another. Here is the problem, I have a package 'FAME' that can run in two different modes on Windows. An old mode that uses R to connect to a remote linux machine and a new way that uses a locally installed database. I would allow this decision to be
2008 Nov 17
2
Cannot quit R - fame package issue?
Hello list member: I've recently had a problem in that I'm unable to quit an R Session. I noticed this after the update to 2.8.0, but I believe I also noticed it on another machine, in the previous version. It occurs on both linux and Mac platforms. It only occurs when I start R in some particular workspaces that have alot of objects in them; it does not occur if I start R in an
2001 Mar 30
1
User defined assignment function ignores argument names (PR#888)
Full_Name: Jeff Hallman Version: 1.2.2 OS: Solaris Submission from: (NULL) (132.200.32.33) "boink<-" <- function(x, a = 1, b = 2, value){ print(match.call()) x } > z <- 1 > boink(z, b = 4) <- 22 boink<-(x = *tmp*, a = 4, value = 22) > Shouldn't it have matched the 4 to b, not a?
2004 Oct 28
1
Internal function isUME() in findGeneric() is wrong (PR#7320)
Full_Name: Jeff Hallman Version: 2.0 OS: Linux Submission from: (NULL) (132.200.32.34) The function findGeneric() in the utils namespace contains this internal function: isUME <- function(e) { if (is.call(e) && (is.name(e[[1]]) || is.character(e[[1]]))) { switch(as.character(e[[1]]), UseMethod = as.character(e[[2]]), "{" =
2008 Aug 15
1
Constructor blah() vs. as.blah()
When should we use one versus the other? If I'm designing an S3 class "blah", should I just implement blah <- function(x, ...) UseMethod("blah") and then a bunch of blah.whatever() functions, including blah.default()? Or should I do as.blah <- function(x, ...) UseMethod("as.blah") with a bunch of methods for it? Or do both? Jeff
2005 Sep 07
1
Using Tk table widget to display matrix
Has anyone written a matrix editor or data.entry() replacement using the Tk table widget? I've been playing around with the examples at http://bioinf.wehi.edu.au/~wettenhall/RTclTkExamples/tktable.html and making some progress, but I'd rather not spend much time on this if someone else has already done it. Jeff
2005 Sep 16
1
Pasting into Tk table widget?
I'm working on a matrix editor using the Tk table widget, and it is almost done. It slices, dices, etc., and it can paste into Excel from an R session running on Linux. What I don't know how to do is paste from Excel into a Tk table, and Google is not helping me. Can anyone lend me a clue? Jeff
2006 Jun 20
1
Packaging platform-specific functions
I have a few functions, such as screenWidth() and screenHeight(), which I have been able to implement for a Unix/Linux environment, but not for Windows. (Does anyone know how to find the screen dimensions in Windows?) The Writing R Extensions manual tells me how to include platform-specific sections in documentation, and even how to have platform-specific help files. But it doesn't say
2006 Jun 13
1
format.POSIXlt drops characters following percent sign (PR#8975)
Full_Name: Jeff Hallman Version: 2.3.1 OS: Windows Submission from: (NULL) (132.200.32.34) Internal(format.POSIXlt(as.POSIXlt(Sys.time()), "%Y%m%d%q", F)) Linux R-2.2.1 returns "20060613%q". Windows R-2.3.1 returns "20060613" dropping the "%q". The documentation says "Any character in the format string other that the '%' escape
2004 Mar 01
1
dev.print and X11(canvas = "black")
In Splus, I often use graphics windows with a black background and white foreground. The S print.graph() function sends the current plot to my printer but with a white background and black foreground. I'd like to be able to do something similar in R, but can't figure out how. I've tried various permutations of dev.copy() and dev.print(), but it seems that the foreground color is