[R] some general advice sought on the use of gctorture()

2015-04-24 Thread Franckx Laurent
Dear all I have bumped into the dreaded 'segfault' error type when running some C++ code using .Call(). I have already undertaken several attempts to debug the C++ code with gdb(), but until now I have been unable to pinpoint the origin of the problem. There are two elements that I think are p

Re: [R] error message: ReadItem: unknown type 64, perhaps written by later version of R

2015-03-06 Thread Franckx Laurent
> -Original Message- > From: Prof Brian Ripley [mailto:rip...@stats.ox.ac.uk] > Sent: vrijdag 6 maart 2015 10:23 > To: Franckx Laurent; r-help@r-project.org > Subject: Re: [R] error message: ReadItem: unknown type 64, perhaps written > by later version of R >

[R] error message: ReadItem: unknown type 64, perhaps written by later version of R

2015-03-05 Thread Franckx Laurent
Dear all I get the following error message when I try to load one specific RData object in R: Error: ReadItem: unknown type 64, perhaps written by later version of R The error message is odd because (a) this RData object was created just one hour berfore in a previous script (in a s

Re: [R] difference between max in summary table and max function

2015-02-16 Thread Franckx Laurent
gham [mailto:aebingh...@gmail.com] Sent: zaterdag 14 februari 2015 8:16 To: 'Martyn Byng'; r-help@r-project.org Cc: Franckx Laurent Subject: RE: [R] difference between max in summary table and max function I thought I'd chime in ... submitting the following: ?summary Provides the followin

[R] difference between max in summary table and max function

2015-02-13 Thread Franckx Laurent
Dear all I have found out that the max in the summary of an integer vector is not always equal to the actual maximum of that vector. For example: > testrow <- c(1:131509) > summary(testrow) Min. 1st Qu. MedianMean 3rd Qu.Max. 1 32880 65760 65760 98630 131500 > max(tes

[R] use of "effects coding" in instrumental variables estimation

2014-01-31 Thread Franckx Laurent
Dear all, I am estimating a model with instrumental variables using ivreg() (from the "AER" library). When the regressors and the instruments are limited to continuous variables, things work fine. However, I have some regressors, such as "income", for which I only have categorical data (very l

Re: [R] error message "system is computationally singular" under mlogit

2014-01-29 Thread Franckx Laurent
ne of them equal to zero. Cheers Laurent -Original Message- From: Bert Gunter [mailto:gunter.ber...@gene.com] Sent: woensdag 29 januari 2014 16:43 To: Franckx Laurent Cc: r-help@r-project.org Subject: Re: [R] error message "system is computationally singular" under mlogit Advic

[R] error message "system is computationally singular" under mlogit

2014-01-29 Thread Franckx Laurent
Dear all, I am trying to estimate a multinomial logit model with mlogit. The data I use for the estimation have the following format (in the full data set, there are many more explanatory variables, but I omit them here for the sake of simplicity): > head(sample) choice cl_vint_com

Re: [R] passing of longitude and lattitude arguments to read URL in Google Maps and extract routes

2013-07-02 Thread Franckx Laurent
i/directions/json?",or_dest,"&sensor=false&mode=transit&departure_time=1372665319",sep=""; ) route <- url(url_to_google) Problem solved, thus. -Original Message- From: David Winsemius [mailto:dwinsem...@comcast.net] Sent: dinsdag 2 juli 2013 15:56 To

[R] passing of longitude and lattitude arguments to read URL in Google Maps and extract routes

2013-07-02 Thread Franckx Laurent
Dear all I try to use Google Maps to calculate travel times per transit between an origin an destination. The guidelines for the search can be found at: https://developers.google.com/maps/documentation/directions/#TravelModes When I submit the latitude and the longitude of the origin and desti

[R] passing of arguments to R CMD BATCH in bash script that is submitted to torque (Linux platform)

2013-06-15 Thread Franckx Laurent
Dear all I want to call R repeatedly in batch mode from a bash script that is then submitted to torque. My calls to R depend on optional arguments. When I introduce these arguments as literals, the calls work fine, for instance: R CMD BATCH --no-save "--args PERIOD='08' YEAR='2008' SC='BAU' "

Re: [R] adding class attributes to strings: works in a loop, but not directly

2013-05-29 Thread Franckx Laurent
method dispatch. Regards Laurent -Original Message- From: Blaser Nello [mailto:nbla...@ispm.unibe.ch] Sent: woensdag 29 mei 2013 15:56 To: Franckx Laurent; r-help@r-project.org Subject: RE: [R] adding class attributes to strings: works in a loop, but not directly There are two separate

[R] adding class attributes to strings: works in a loop, but not directly

2013-05-29 Thread Franckx Laurent
Dear all I try to assign class attributes to strings. Depending on the approach I use, it works (including method dispatch) or fails. Let me clarify with an example. Let: > AONtptmodelist <- c("FOOT","BICY") When I assign "class" attributes directly to these strings, it fails: > class("BICY

[R] error occurring in batch mode, not interactive mode: how to find cause of problem

2013-02-04 Thread Franckx Laurent
Dear all, I use R version 2.15.1 on x86_64-pc-linux-gnu (64-bit). I run a simulation where I have to call a series of R scripts in batch mode. When I run the following two lines, this works well for PERIOD='17' but not for PERIOD='08': R CMD BATCH --no-save "--args PERIOD='08' YEAR='203O' SC

Re: [R] Error in memory.size(size) when calling R in batch mode (but not in interactive mode)

2012-11-09 Thread Franckx Laurent
\bin\i386 (I had copied an old batch file, and overlooked this). The problem is solved now. -Original Message- From: Milan Bouchet-Valat [mailto:nalimi...@club.fr] Sent: vrijdag 9 november 2012 14:34 To: Franckx Laurent Cc: 'r-help@r-project.org' Subject: Re: [R] Error in memory

[R] Error in memory.size(size) when calling R in batch mode (but not in interactive mode)

2012-11-09 Thread Franckx Laurent
Dear all I use a 64 bit Windows7 system with 16 GB memory. I have run an R script in batch mode with the following command: R CMD BATCH masterassignment_2012_11_09.r --save The execution was terminated with the following error message: Error in memory.size(size) : don't be silly!:

[R] R/C++ interfaces: crashes when using .c(), followed by correct results when R restarted

2012-09-20 Thread Franckx Laurent
Dear all I have written a function in C++ , equil_distC, that I am calling from an R script. In the last few days, R has repeatedly crashed when calling this function, or delivered obviously wrong outputs. However, when I restarted R after the crash, the results turned out to be OK most of t

Re: [R] LoadLibrary failure: : %1 is not a valid Win32 application although arch x64 has been specified

2012-09-17 Thread Franckx Laurent
Problem solved, thank you. -Original Message- From: Duncan Murdoch [mailto:murdoch.dun...@gmail.com] Sent: maandag 17 september 2012 13:05 To: Franckx Laurent Cc: 'r-help@r-project.org' Subject: Re: [R] LoadLibrary failure: : %1 is not a valid Win32 application although arch x6

[R] LoadLibrary failure: : %1 is not a valid Win32 application although arch x64 has been specified

2012-09-17 Thread Franckx Laurent
Dear all, I have problems loading a library in the 64 version of R. The following happens: · I have a file, equildistC.cpp, which contains a few lines of C++ code. · I have compiled the file using the following commands: PATH = c:\Rtools\bin;C:\Rtools\gcc-4.6.3\bin;C:\Rtools\

Re: [R] use of ddply() within function

2012-09-07 Thread Franckx Laurent
Problem solved, thanks. I've used this instead: COSTaux_AVCAR <- ddply(CARaux,c("SC","YEAR"),.fun = function(xx){sum(xx[ ,costcarin])}) -Original Message- From: Jeff Newmiller [mailto:jdnew...@dcn.davis.ca.us] Sent: donderdag 6 september 2012 1

[R] use of ddply() within function

2012-09-06 Thread Franckx Laurent
Dear all, I am encountering problems with the application of ddply within the body of a self-defined function. The script is the following: moncostcarmoto <- function(costtype){ costaux_result <- data.frame() for (purp in PURPcount){for (per in PERcount){

Re: [R] creation of package failed

2012-08-15 Thread Franckx Laurent
ectures, I had lost sight of this specific point. I can only confirm that, under Windows, the Rtools directories really, really need to be put in front. Van: Uwe Ligges [lig...@statistik.tu-dortmund.de] Verzonden: dinsdag 14 augustus 2012 16:43 Aan: Franc

Re: [R] creation of package failed

2012-08-14 Thread Franckx Laurent
I should add to the previous mail that the installation has worked correctly under Cygwin after I had deleted the following files in the source directory: firstccfile.o and secondccfile.o However, this does not solve the problem under Windows. -Original Message- From: Franckx Laurent

Re: [R] creation of package failed

2012-08-14 Thread Franckx Laurent
in the "R installation and administration" manual very clear on this specific point.) I hope this is sufficient information to clarify the problem. -----Original Message- From: Uwe Ligges [mailto:lig...@statistik.tu-dortmund.de] Sent: maandag 13 augustus 2012 19:29 To: Franckx

[R] creation of package failed

2012-08-13 Thread Franckx Laurent
Dear all I am trying to build a package, and get the error message: ""packaging into .tar.gz failed"". I have also installed the same package directly from a locally created zip file. In this case, the package is put correctly under C:\R\R-2.15.0\library. However, when I check the package, I ge

[R] CPU usage while running R code

2012-07-04 Thread Franckx Laurent
I am currently running an R program on a computer with 16 Gb memory (Windows7, 64 bit). When I look at the task manager, I see that only 4 out of the 8 CPUs are being used. Is this due to some missing in the R code, or should I change something to the settings of the computer? Laurent Franckx,

[R] R/C++ interfaces: documentation for SET_STRING_ELT, PROTECT, etc...

2012-06-08 Thread Franckx Laurent
Dear all, I am reading C++ code that is called in an R package. It is not clear to me what SET_STRING_ELT, getAttrib, etc exactly do. I understand that these are macros that have been declared in Rinternals.h and who are used for the correct "translation" of the R data structures, but I have n

[R] Error: could not find function

2011-09-28 Thread Franckx Laurent
Dear all I have written a function, "calibrateCES", in which a function is called, "BPGC", which was written in the enclosure of "calibrateCES". Until the most recent version of my program, "calibrateCES" always used "BPGC" as planned. Following a modification which does not affect "BPGC" direc