similar to: Console/command line output

Displaying 20 results from an estimated 3000 matches similar to: "Console/command line output"

2004 Jul 05
1
passing char's from C to Fortran (mac os x)
Hello All, In some package I use a c-routine which calls a fortran routine which expects a char-string as input. As per the writing R-extensions manual, the Fortran routine is declared in C as: void F77_NAME (setoptions) (char **option); and then it is calles as follows: char **option; option = new char*[1]; option[0] = new char[256]; option[0] = strcpy(option[0],"Iteration
2004 Nov 15
2
Problems installing packages on MacOS with R 2.00
Dear all, I have a problem installing a package required by Hmisc on MacOS 10.3.5 with R 2.00. g77 -fno-common -g -O2 -c avas.f -o avas.o g77 -fno-common -g -O2 -c rlsmo.f -o rlsmo.o gcc -bundle -flat_namespace -undefined suppress -L/usr/local/lib -o acepack.so ace.o avas.o rlsmo.o -L/usr/local/lib -L/usr/local/lib/gcc/powerpc-apple-darwin6.8/3.4.2
2004 Mar 30
2
RAqua and gcc
Hi, I've recently purchased PowerBookG4 (panther) and installed RAqua 1.8.1. I also installed gcc version 3.3 through Xcode tools. But, for some reason, I'm having a hard time getting gcc work with R. For example, I get the following error while installing Hmisc package. I would appreciate any suggestion to fix this problem. Thanks Kosuke * Installing *source* package
2005 Mar 22
5
Convert timeseries to transition matrix
Hi All, Does someone have an idea of how to cleverly convert a categorical timeseries into a transition matrix? Ie, I have something like: x<- c(1,1,2,1,1,2,2,2,1,2), And I want a matrix with counts and/or probabilities: > tr <- matrix(c(2,3,2,2),2,2) > tr [,1] [,2] [1,] 2 2 [2,] 3 2 Meaning that there are two transitions from 1 to 1, two from 1 to 2, three from 2 to 1
2006 Oct 13
3
Barplot legend position
Dear useRs, I'm trying to create a barplot like so: x=matrix(1:10,2,5) barplot(x,leg=c("left","right"),besid=T) The legend is placed in default position topright, however the data are plotted there too. I tried controlling the legend position by adding x="topleft" but this results in an error that x matches multiple formal arguments. Leaving out the legend
2006 May 09
1
Calling R from C
Dear R-helpers, I'm trying to transfer a loop from R code to C to improve performance using the .Call interface. However, I ran into problems before even getting started, and I hope (fear) I'm missing something completely obvious here. I use the following C function (passing an integer to the C function and printing it): #include <R.h> #include <Rinternals.h> SEXP
2004 May 12
4
bus error macosx/off-topic
Hi All, I'm building a package using C/C++ and Fortran code which usually runs fine. However I do get occasional bus errors around the time of exiting one of the C functions. Where do I need to be looking to solve this problem? Do bus errors stem from unmapped memory exceptions? How can I find out if that is what is happening while running R? Any hints greatly appreciated. Best, ingmar
2005 May 22
3
constraints
Is there a package in R that handles general linear (in-)equality + box constrained optimization? If it is not there, could anyone advise me which way to go? And/or point me to packages that solve these problems partially? best, ingmar -- Ingmar Visser Department of Psychology, University of Amsterdam Roetersstraat 15, 1018 WB Amsterdam The Netherlands http://users.fmg.uva.nl/ivisser/ tel:
2008 Apr 07
2
tcltk issue remains
Dear R-help, I'm trying to load the fGarch package and keep running into problems with tcltk: After succesfully instaling fGarch (and dependencies) I get: >library(fGarch) Loading required package: fBasics Loading required package: fImport Loading required package: fSeries Loading required package: robustbase Loading required package: fCalendar Loading required package: MASS Loading
2008 Dec 17
1
repeated measures aov with weights
Dear R-help, I'm facing a problem with defining a repeated measures anova with weighted data. Here's the code to reproduce the problem: # generate some data seed=11 rtrep <- data.frame(rt=rnorm(100),ti=rep(1:5,20),subj=gl (20,5,100),we=runif(100)) # model with within factor for subjects/repeated measurements, no problem aov(rt~ti + Error(subj/ti),data=rtrep) #model with weights
2003 Nov 08
1
RAqua with X11 TclTk
I've built a version of RAqua that uses X11 TclTk and NOT AquaTclTk. http://www.economia.unimi.it/R/RAquaX11.dmg (15 MB disk image) The idea is that you: launch RAqua, launch X application (the X Server), and from inside R type x11() # just tt set DISPLAY to :0.0. Eventually close this window device, we don't need this. load(tcltk) quartz() demo(tkdensity) It works on my Panther
2005 Apr 28
1
help files and vignettes
Hi all, I'm writing a vignette for my package, and I would like to include some of the package help files in there as well. Is there an easy way of doing so? I tried using R CMD Rdconv to generate latex files from .Rd files but I am not sure how to include these into a .Rnw file (ie the vignette source). The resulting file from Rdconv do not readily compile using latex ... The other option I
2005 Oct 31
1
information matrix in random effects model
I use the lme function from the nlme library (or alternatively from the Matrix library) to estimate a random effects model. Both functions return the covariance matrix of the estimated parameters. I have the following question: Is it possible to retrieve the information matrix of such a model (ie from the fitted object)? In particular, the information matrix can be computed as a sum of individual
2003 Nov 06
1
RAqua package installation on Panther
From the RAqua faq just uploaded to CRAN (so it will take until tomorrow to appear) Panther notes After installing Panther (MacOSX 10.3) it turns out that package installation (either from sources or from binaries) can fail. If you get an error "like" this (this comes from source package installation) dyld: gcc version mismatch for library: /usr/local/lib/libiconv.2.dylib
2003 Oct 30
1
RAqua and AquaTclTk
While playing around with panther I discovered (with surprise) that tcltk seems to work (even if not smoothly) with RAqua without first calling tkStartGUI. I switched back to 10.2.6 and it works as well. I think this is due to the "last minute" fix in RAqua now using idle timers because of too much cpu usage. Some "mouse" trick is needed though. If you want to test it you
2007 Jan 05
1
Efficient multinom probs
Dear R-helpers, I need to compute probabilties of multinomial observations, eg by doing the following: y=sample(1:3,15,1) prob=matrix(runif(45),15) prob=prob/rowSums(prob) diag(prob[,y]) However, my question is whether this is the most efficient way to do this. In the call prob[,y] a whole matrix is computed which seems a bit of a waste. Is there maybe a vectorized version of dmultinom which
2003 Dec 11
2
Failed installation on Mac OSX 10.3 (PR#5697)
I've installed R 1.8.1 on OSX 10.3 (Panther) using the RAqua.pkg and all indications were that the installation was successful. However, after double clicking the R icon in the Applications folder, nothing appears to happen. The following message appears on the console: Mac OS X Version 10.3 (Build 7B85) 2003-12-11 08:45:31 -0500 prefs written dyld:
2003 Dec 11
2
Failed installation on Mac OSX 10.3 (PR#5697)
I've installed R 1.8.1 on OSX 10.3 (Panther) using the RAqua.pkg and all indications were that the installation was successful. However, after double clicking the R icon in the Applications folder, nothing appears to happen. The following message appears on the console: Mac OS X Version 10.3 (Build 7B85) 2003-12-11 08:45:31 -0500 prefs written dyld:
2005 Dec 01
2
suppress checking chm files in R CMD check on Windows
Dear R-helpers, When installing a source package I can suppress the compilation of .chm files by using the --docs="normal" option. Is it also possible to suppress the creation and checking of .chm files when calling R CMD check ? best, ingmar
2005 May 03
1
Rd.sty error
I had written a vignette and included a \usepackage{Rd} command to make it possible to include latex'ed Rd files in the vignette. However, when loading Rd.sty texShop produces the following error: l. 180 ...d}[1]{\ifmmode\bm{#1}\else\textbf{#1}\fi} This is on Max OS X 3.9 and R 2.0.1 Has anyone seen this before and/or is it problematic? I'm not sure whether the output suffers from this