similar to: working with list

Displaying 20 results from an estimated 10000 matches similar to: "working with list"

2003 Feb 25
2
syntax rules
hi, i lost half a day trying to figure out how r is parsing statements in multiple lines. can someone explain (or direct me to documentation) the following. consider the following statements in a program file, say foo.r: a <- 1 + 2; b <- {1 + 2}; {c <- 1 + 2}; d <- c(1, 2); if i do source("foo.r"), i get a=3, b=2, c=1, d={1,2}. according to the r language definition
2005 Apr 19
2
building recommended packages on Windows
Hi, I am building 2.1.0 (re-release version, if that matters) on a Windows XP machine. Following the instructions 3.1 "Building from source" in R-admin.html, I managed to get up to 3.1.6. But when I try to build the recommended packages, I get C:\hiro\codes\proj\R-2.1.0\src\gnuwin32>make recommended --- Unpacking recommended packages ---- VR make[1]: *** No rule to make target
2004 Jul 16
3
rd2dvi bug on windoze?
hi, can anyone confirm the following problem? when i do dos> rcmd rd2dvi --pdf my-package-name i get dos> Can't open perl script "c:\PROGRA~1\r\rw1091/bin/rd2dvi": No such file or directory might the problem be in (double back slashes rather than forward slashes) R-1.9.1\src\gnuwin32\front-ends\rcmdfn.c(251): strcat(cmd, RHome); strcat(cmd, "/bin/Rd2dvi.sh");
2009 Oct 23
2
reg-tests-1.R failure with unstable
Hi, I am getting an error from one of the test files tests/reg-tests-1.R using the unstable version (r50179). (i've learned my lessons; this is a clean build.) The tail of reg-tests-1.Rout.fail is Loading required package: myTst building package pkgA ... installing package pkgA using file pkgA_1.0.tar.gz ... Error in as.octmode(mode) : invalid digits Error in install.packages(r, lib =
2007 Jun 18
1
two bessel function bugs for nu<0
#bug 1: besselI() for nu<0 and expon.scaled=TRUE #tested with R-devel (2007-06-17 r41981) x <- 2.3 nu <- -0.4 print(paste(besselI(x, nu, TRUE), "=", exp(-x)*besselI(x, nu, FALSE))) #fix: #$ diff bessel_i_old.c bessel_i_new.c #57c57 #< bessel_k(x, -alpha, expo) * ((ize == 1)? 2. : 2.*exp(-x))/M_PI #--- #> bessel_k(x, -alpha, expo) * ((ize == 1)? 2. :
2010 Feb 28
3
Change the scale on a barplot's y axis
I have grades data. I read them from a csv in letter-grade format. I then converted them to levels levels(grades$grade)=c('A+','A','A-','B+','B','B-','C+','C','C-','D+','D','D-') And then to numbers grades$gp=grades$grade levels(grades$gp)=c(4.3,4.0,3.7, 3.3,3.0,2.7, 2.3,2.0,1.7, 1.3,1.0,0.7)
2004 Aug 02
3
help(arima) return value typo?
in ?arima (R-1.9.1), the return value component 'convergence' should be 'code'? (it's a pity there is no reliable way to check return value documentation consistency with the code, or is there?) h. ---------------------------------- Hiroyuki Kawakatsu School of Management and Economics 25 University Square Queen's University, Belfast Belfast BT7 1NN Northern Ireland
2004 Aug 02
3
help(arima) return value typo?
in ?arima (R-1.9.1), the return value component 'convergence' should be 'code'? (it's a pity there is no reliable way to check return value documentation consistency with the code, or is there?) h. ---------------------------------- Hiroyuki Kawakatsu School of Management and Economics 25 University Square Queen's University, Belfast Belfast BT7 1NN Northern Ireland
2007 Jan 18
2
building R on freebsd 6.2 (amd64)
Hi, I updated my os to freebsd 6.2 and built R-patched with no changes in configure. I pass make check and copy the R executable to /usr/local/bin/R. Then when I start R, I get /libexec/ld-elf.so.1: Shared object "libRblas.so" not found, required by "R" and have to copy/link the two shared object files (libRblas.so and libRlapack.so) to somewhere "visible" like
2017 May 24
2
reg-tests-1d.R fails in r72721
Hi, I am failing make check in r72721 at the end of reg-tests-1d.R. The relevant block of code is ## path.expand shouldn't translate to local encoding PR#17120 filename <- "\U9b3c.R" print(Encoding(filename)) x1 <- path.expand(paste0("~/", filename)) print(Encoding(x1)) x2 <- paste0(path.expand("~/"), filename) print(Encoding(x2)) stopifnot(identical(
2017 May 24
2
reg-tests-1d.R fails in r72721
On 2017-05-24, Duncan Murdoch wrote: > > I think the test is wrong because in the first case you are working in a > locale where that character is representable. In my locale it is not, so x1 > is converted to UTF-8, and everything compares equal. > > An explicit conversion of x1 to UTF-8 should fix this, i.e. replace > > x1 <- path.expand(paste0("~/",
2016 Mar 30
1
reg-tests-1a fails with r70391
Hi, This may be a `transitional' bug but I am reporting a make check fail with R-devel r70391 in reg-tests-1a.Rout. The tail of reg-tests-1a.Rout.fail is > ## prcomp(tol=1e-6) > x <- matrix(runif(30),ncol=10) > s <- prcomp(x, tol=1e-6) > stopifnot(length(s$sdev) == ncol(s$rotation)) Error: length(s$sdev) == ncol(s$rotation) is not TRUE Execution halted Looking at
2009 Mar 11
1
configure fail for XML package on freebsd
Hi, I am having problems installing the XML package with R-devel on freebsd. If I simply do install.packages("XML"), it says that the parser.h file is not found. After reading the INSTALL file, I have set setenv XML_CONFIG /usr/local/bin/xml2-config setenv LIBXML_LIBDIR -L/usr/local/lib setenv LIBXML_INCDIR -I/usr/local/include/libxml2/libxml and install.packages("XML")
2004 Aug 17
1
suggestion for ARMAacf()
hi, in 1.9.1, the return value from ARMAacf(pacf=TRUE) is not named by lags, contrary to ?ARMAacf. the simple fix is to move names(Acf) <- down after if(pacf), with an appropriate starting lag as pacf=TRUE appears to start at lag 1 (whereas pacf=FALSE starts at lag 0). for consistency, one could argue to append 1 for lag 0 for pacf=TRUE (or start pacf=F at lag 1). however, given the
2006 Sep 28
1
unable to load lapack.so
Hi, I'm having problems using ACML with R. I made two changes in config.site by setting LDFLAGS="-L/opt/acml3.1.0/gnu64/lib" BLAS_LIBS="-lacml" ./config and make go through but when I try to use the lm() function, I get the error message Error in chol2inv(Qr$qr[p1, p1, drop = FALSE]) : lapack routines cannot be loaded In addition: Warning message: unable to load
2007 Dec 14
1
windows rtools missing gfortran.exe?
Hi, I replaced my Rtools today as posted at http://www.murdoch-sutherland.com/Rtools/Rtools.exe Trying to build R-devel_2007-12-13.tar.gz without modifying MkRules gives the gfortran command not found error below. I am wondering if gfortran.exe is missing from (recent?) Rtools.exe or I am doing something wrong. Thanks to hints at Duncan's site, I worked around the error by adding
2009 Mar 10
1
r-devel tarball build failure on windows
Hi, On my windows (xp) machine with Rtools29 (excluding cygwin dlls as I have cygwin on my path) -make all recommended- for the latest R-devel tarball (svn revision: 48093) fails when trying to build the recommended packages: --- Making recommended packages ----- installing recommended package KernSmooth Warning: invalid package 'KernSmooth.tgz' Error: ERROR: no packages specified
2009 Sep 26
1
Rtools210 missing jpeg-7?
Hi, I just built r49839 on my windoze machine with Rtools210. When I do -make bitmapdll-, it errors saying file jpeg-7/jconfig.h not found (apologies, I lost the exact error message). After downloading and unpacking jpegsr7.zip, the bitmap dll builds fine. Rtools210 appears to still install jpeg-6b, whereas the bitmap makefile (first line) is expecting jpeg-7. Perhaps this is still experimental
2008 Nov 24
1
make fails with no rule to make target `VR.ts'
Hi, When trying to build R-devel.tar.bz2 (SVN-REVISION: 47015) I am getting the error: tkpager text html latex gmake[2]: Leaving directory `/usr/local/share/R-devel/src/library' gmake[2]: Entering directory `/usr/local/share/R-devel/src/library' building/updating package indices ... gmake[2]: Leaving directory `/usr/local/share/R-devel/src/library'
2001 Nov 19
2
acf mis-feature (PR#1177)
Full_Name: Hiroyuki Kawakatsu Version: 1.3.1 OS: win2k Submission from: (NULL) (130.158.140.105) the lag labels in the acf plot is screwed when the ts frequency>1. try, for example, #acf mis-feature x <- ts(rnorm(200), frequency=4); acf(x,lag.max=24); h. > version _ platform i386-pc-mingw32 arch x86 os Win32 system x86, Win32