similar to: scripting/littler: How to call function named iteratively (`f1`, `f2`, …)?

Displaying 20 results from an estimated 1000 matches similar to: "scripting/littler: How to call function named iteratively (`f1`, `f2`, …)?"

2007 Nov 05
2
namespace crash on S3method("as.ff",function)
Dear all, I have defined a generic as.ff(x, ...) and a method as.ff.function(x, ...) which converts a standard R function x into a chunked version operating on large ff objects. Everything works fine, but when registering S3method("as.ff",function) in NAMESPACE, the installation fails with some kind of parsing error: adding build stamp to DESCRIPTION installing NAMESPACE file
2008 Apr 11
1
make check fails if called with --without-recommended-packages
Hi, just for information: On Suse 10.3 x86 > make check fails, if configure was called with --without-recommended-packages for the latest beta. The problem I stumbled upon is located in utlis. Here comes the relevant part of utils-Ex.Rout.fail in R-2.7.0/tests/Examples > ### ** Examples > > require(stats) > glmout <- capture.output(example(glm)) Fehler in
2008 Oct 22
1
R 2.8.0 qqnorm produces error with object of class zoo?
Dear list-reader, by running the following script: library(zoo) sessionInfo() search() packageDescription("zoo") data(EuStockMarkets) dax <- as.zoo(EuStockMarkets[1:10, "DAX"]) daxr <- diff(log(dax)) identical(as.vector(qnorm(daxr)), qnorm(coredata(daxr))) qqnorm(coredata(daxr)) qqnorm(daxr) qqnorm() produces an error: > qqnorm(daxr) Fehler in if (xi == xj) 0L
2012 Mar 28
2
getopt does not work as expected!
I have the following script (also attached): #!/usr/bin/Rscript spec=matrix(c( 'verbose', 'v', 1, "integer", 'help' , 'h', 0, "logical" ),ncol=4, byrow=TRUE) spec.dim=dim(spec) spec.opt.long=spec[,1] spec.opt.short=spec[,2] spec.opt.l <- spec.dim[1] infile <- "test.dat" args=commandArgs(TRUE); l=length(args) self =
2011 Mar 19
1
Undefined symbol "Rf_pythag" while loading spatstat
Today I installed the newest R develepment branch R version 2.14.0 Under development (unstable) (2011-03-18 r54866) on FreeBSD 9.0-CURRENT (amd64). All seems fine so far. After that I updated my R packages with option 'checkBuilt=TRUE'. There are four packages (spatstat, pscl, adehabitatLT, adehabitatHR) which gives an error like this: Error in dyn.load(file, DLLpath = DLLpath, ...) :
2011 Mar 21
1
error in: testing if installed package can be loaded
hi, I am preparing my package for R 2.13 build and check gives no warnings just OK's However when running R CMD INSTALL it gives me (nfortunately it is in german) ** help *** installing help indices ** building package indices ... ** testing if installed package can be loaded Fehler: '\U' ohne Hex-Ziffern in der Zeichenkette beginnend mit "C:\U" genutzt Ausführung
2012 Aug 24
1
Fwd: Re: Package cwhmisc and problems
-------- Original-Nachricht -------- Betreff: Re: Package cwhmisc and problems Datum: Fri, 24 Aug 2012 07:34:14 +0100 Von: Prof Brian Ripley <ripley@stats.ox.ac.uk> An: Christian Hoffmann <c-w.hoffmann@sunrise.ch> Kopie (CC): CRAN@r-project.org This is the address for CRAN submissions. Please ask for help on R-help or R-devel. On 23/08/2012 20:16, Christian Hoffmann wrote:
2006 Nov 10
2
Problems with metaMDS from vegan
Hello all, I recently used the Vegan library quite extensively (in the context of text similarity assessment) on an Ubuntu 6.06 LTS system with R version 2.2.1 (2005-12-20 r36812). The Vegan lib is version 1.6-10. I hit on a problem yesterday, though, when trying to install R and Vegan on two further computers - one Windows XP and one further Ubuntu 6.06 machine, taking either R version 2.4.0
2012 Dec 23
1
Calling a .bat to set environment variables and subsequent .exe execution from within R
Dear list, I have found a thread dealing with similar problems with a Mac, but somehow I cannot get it to work and the problem is slightly different: I am using the shell() command to execute a program from within R. The problem is that I need to execute SDKShell.bat file first that sets the environment variables for the program ogr2ogr.exe: shell(cmd =
2007 Nov 12
1
(no subject)
Hello members of the mailinglist! I am running R 2.6.0 GUI 1.21 (4815) (4815) on a PPC with Mac OS X 10.4. I just tried to use the R commander. I followed these instructions: 4) Start R (e.g. double-click the R icon in /Applications). 5) Start X11 (e.g. click the X11 button on the R Console or double- click the X11 icon in /Applications/Utilities). 6) Close the X11 terminal (optional). 7) Type
2005 Nov 22
3
make check fails for R 2.3.0 (PR#8343)
Full_Name: Arne Henningsen Version: 2.3.0, 2005-11-21, i686-pc-linux-gnu OS: SuSE Linux 9.0, Kernel 2.4.21 Submission from: (NULL) (134.245.140.242) I did not find any problems in "./configure" and "make", but "make check" fails: make[4]: Entering directory `/home/suapm095/Download/R-devel/tests/Examples' collecting examples for package 'base' ...
2005 May 18
1
Testing for warning inside functions
I am looking for a way to get a warning message immediately after an evaluation within a function. To get error messages you can use geterrmessage(). But I found no function that allows me to check for warnings. Five years ago this questions has been posted but I haven't found any answer. Thanks for any help. Peter Wolf ------------ For illustration purpose a simple example follows: you
2009 Feb 17
2
spss-file problem with foreign 0.8-32
Hi, after updating to foreign version 0.8-32, I experienced the following error when I tried to load a SPSS file: Fehler in inherits(x, "factor") : objekt "cp" nicht gefunden Zus?tzlich: Warning message: In read.spss("***l.sav", use.value.labels = TRUE, to.data.frame = TRUE) : ***.sav: File-indicated character representation code (1252) looks like a Windows
2008 Jan 04
2
subsetting
I'm using R Version 2.6.1 under Windows XP. > search() [1] ".GlobalEnv" "s" "s" "package:cairoDevice" [5] "package:datasets" "package:foreign" "package:graphics" "package:grDevices" [9] "package:gWidgetsrJava"
2009 Mar 25
2
linking environments
Dear R-helpers, I try to use nested R-functions as follows: help1 = function(){ x = 1 help2() } with help2 = function(){ if (x == 1) cat("Hello world x = 1") } If I compile these functions and run help1() an error message occurs Fehler in help2() : objekt "x" nicht gefunden in english "error in help2(): object
2009 Feb 10
2
Problem installing MASS-Package
Dear R-Help-Team, I tried to use isoMDS-Function of the MASS-Package: Message: Fehler: konnte Funktion "isoMDS" nicht finden (error: could not find function "isoMDS") so I tried to install the package MASS: > utils:::menuInstallPkgs() versuche URL 'http://cran.rakanu.com/bin/windows/contrib/2.8/VR_7.2-45.zip' Content type 'application/zip' length 1598763
2012 Mar 17
1
qtbase installation problems on MacOS
Ein eingebundener Text mit undefiniertem Zeichensatz wurde abgetrennt. Name: nicht verf?gbar URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20120317/aaf91ee9/attachment.pl>
2011 Jan 22
1
Truly Global Variables
Hello everybody, I have a problem that is bothering me for quite a while now and I don't know the answer... I want to create global variables (out of a function) which I can access from all other functions... But somehow that does not work too well. Attached some code for an example: function_called <- function (){ result = globalvariable*globalvariable print(result) }
2014 Nov 03
0
Pkg creation: Sweave: multiple files vignette: Error in R CMD check
Hello R-developers! I am creating a package (using devtools and RStudio) and I would like to split my vignette into multiple Rnw-files. As an example I tried the code from: https://support.rstudio.com/hc/en-us/articles/200486298 (--> Working with multiple Rnw files) The Rnw-files work fine with "Complie pdf" in RStudio as well as with Sweave("Master.Rnw"). But, if I try
2011 Aug 06
1
exclude matrix from matrix
Dear List, I am a beginner of R and have an easy question, which I couldn’t find out. I like to exclude all rows of matrix “y” from matrix ”x” (like a subset of “x”, without “y”). The matrix “x” is of the structure >str(x) num [1:346, 1:8] 0.055 0.6833 0.9121 0.0819 0.1223 ... - attr(*, "dimnames")=List of 2 ..$ : chr [1:346] "10357" "10815"