Displaying 20 results from an estimated 4000 matches similar to: "syntax rules"
2003 Feb 19
3
working with list
hi,
i have two questions:
(1) lookup: given a list of 'strings' in a list, i want to know the index
of a given string in the list. if the string is not in the list, the index
can be 0 or length()+1. for example, suppose i have
names <- c("dog", "cat", "pig", "fish");
then i want
lookup(names, "cat") to return 2 and
lookup(names,
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. :
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
2006 Jun 14
3
where to define a struct
Hello,
I''m trying to use the following Struct in my web app:
UserInfo = Struct.new( "UserInfo", :first_name, :last_name, :email,
:domain_name )
I placed this in the environment.rb, thinking that it should be
initialized only once.
But when I try to access it from within my controller, I get:
undefined method `UserInfo'' for #<UserController:0x243ad5c>.
so
2006 Jun 28
6
file_column plugin. Storing files outside RAILS_ROOT
I also posted this on Rails Engines forum. Sorry for the double post.
I am trying to configure file_column plugin so that it stores the images
in a directory completely outside of RAILS_ROOT.
I have no problems in storing the files by setting :root_path option.
But I can''t get to display these images using ''url_for_file_column''.
What I get instead of the image is
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'