similar to: Apropos sprintf behavior

Displaying 20 results from an estimated 2000 matches similar to: "Apropos sprintf behavior"

2005 Jan 28
1
error in gmake CrossCompileBuild
Dear all, I expect that I am on thin ice trying to build this on freeBSD 4.10, however, after tweaking Makefile-rcb v11Oct04 /* MAKE=gmake; MINGW_CROSS = mingw-cross4 */, I encounter: mingw32-gcc -isystem ~/RCrossBuild/cross- tools/mingw32/include -O2 -Wall -pedantic -I../include -I. - DHAVE_CONFIG_H -DR_DLL_BUILD -c dynload.c -o dynload.o dynload.c: In function `R_loadLibrary':
2004 Nov 19
1
R (unix) command line editing for native speakers of vi
As an inveterate user of vi, I was pleased to stumble on how to use it for editing R commands. When an interactive R session is launched under unix, the command line editor most likely defaults to emacs. Typing <esc>,<ctrl>+j will switch this to vi editing mode (see below for possible exceptions). excerpted from readline(3) manpage: vi-editing-mode (M-C-j) When in emacs
2020 Jan 06
1
standard naming for components of R data structures
@steve Seek for online document named "writing R extensions" chapter 2. It tells how to describe a list structure using item markup for R documentation files, if indeed this matches your search, thing I am not sure. Something that looks like... value{ The \\code{list} owns following names \\item{alpha}{double vector} \\item{beta}{integer vector} \\item{delta}{raw vector} } Best Le
2003 Sep 02
3
How to avoid automatic coercion to factor?
I have a function that manipulates a list of numeric and character components of equal length and wants to return a data.frame. EG, f<-function() { a<-list(Int1=1:5,Char1=letters[1:5],Char2=letters[6:10]) b<-data.frame(a) } How can I get the columns Char1, Char2, (...CharN) returned coerced to character and not factor? It appears that I could coerce individual columns by
2020 Jan 01
3
standard naming for components of R data structures
I need to write some documentation: I'm looking for a standard, consistent way of referring to the components and attributes of R data structures. Googling and Stackoverflow yield a variety of github sites that do not seem to be particularly authoritative. I was hoping to find a BNF/ABNF grammar for R. I've looked at the output of bison -v ./R-3.6.2/src/main/gram.y but it does not
2007 Feb 14
1
Any packages for conducting AHP( Analytic Hierarchy Process) data
Hi, R Lovers! I have some survey data. I'd like to run R or R packages for processing data inputted from AHP(Analytic Hierarchy Process) survey. Are there any R packages or subsititues for running data from AHP survey. Thanks in advance, -- Kum-Hoe Hwang, Ph.D.Phone : 82-31-250-3516 Email : phdhwang@gmail.com [[alternative HTML version deleted]]
2020 Jan 06
0
standard naming for components of R data structures
Do you just need something on pen and paper? (In which case, I don't see why it needs to be "standard"). Or do you need something that can be used with bison/yacc/cup/etc to produce a parser? On a side note, I would say that the R Language Definition is the "standard" way. But I do recognize that this has a different flavour to modern language implementation *theory*.
2005 Feb 07
1
Problems encountered/fixed making CrossCompileBuild
Dear All: I encountered and apparently overcame problems following Yan and Rossini?s procedure for "Building Microsoft Windows Versions of R and R packages under Intel Linux" (http://cran.r-project.org/doc/contrib/cross-build.pdf): I have successfully cross-compiled R packages for Windows on a FreeBSD 4.10 i386 system. My revisions to Makefile-rcb (http://cran.r-
2017 Jun 21
2
Proposed new documentation "Configuration Examples"
On Tue, 13 Jun 2017, Charles Lepple wrote: > On Jun 9, 2017, at 10:16 AM, Roger Price wrote: >> To address this, I propose a "NUT configuration for Noobs" which is >> called "Configuration Examples". > I am also curious whether you tried to edit any of the existing NUT > documentation before creating a new document. We chose AsciiDoc in part >
2008 Apr 28
4
R 2.7.0, match() and strings containing \0 - bug?
Hi, A piece of my code that uses readBin() to read a certain file type is behaving strangely with R 2.7.0. This seems to be because of a failure to match() strings after using rawToChar() when the original was terminated with a "\0" character. Direct equality testing with == still works as expected. I can reproduce this as follows: > x <- "foo" > y <-
2007 Sep 13
0
[LLVMdev] assumptions about varargs ABI
On Thu, 13 Sep 2007, Jay Foad wrote: > Various parts of LLVM seem to assume that the ABI for a varargs > function is compatible with the ABI for a non-varargs function, so This is due to 'K&R' C function handling. In K&R and ANSI C, you can do stuff like this: void foo(); void bar() { foo(1, 2, 3); } void foo(int a, int b, int c) {} and it needs to work. > (I
2009 Aug 11
1
[PATCH libguestfs] doc: improve emacs snippets
I've made some local commits that introduce TABs as indentation, and thus provoke a "make syntax-check" failure. This would have prevented it: >From 4740b66adc5985d9a72a7648aa60c5389ffc31af Mon Sep 17 00:00:00 2001 From: Jim Meyering <meyering at redhat.com> Date: Tue, 11 Aug 2009 09:53:16 +0200 Subject: [PATCH libguestfs] doc: improve emacs snippets * HACKING: Make (setq
2007 Aug 07
2
Embedded nuls in strings
Hi, ?rawToChar 'rawToChar' converts raw bytes either to a single character string or a character vector of single bytes. (Note that a single character string could contain embedded nuls.) Allowing embedded nuls in a string might be an interesting experiment but it seems to cause some troubles to most of the string manipulation functions. A string with an embedded 0:
2008 Nov 14
0
(PR#13283) R crashes on sprintf with bad format specification
> From: r-devel-bounces at r-project.org=20 > [mailto:r-devel-bounces at r-project.org] On Behalf Of Prof Brian Ripley > Sent: Friday, November 14, 2008 2:25 AM > To: Duncan Murdoch > Cc: R-bugs at r-project.org; ocheyett at bonddesk.com;=20 > r-devel at stat.math.ethz.ch > Subject: Re: [Rd] (PR#13283) R crashes on sprintf with bad=20 > format specification >=20 > As
2008 May 21
1
rawToChar(raw(0))
Hi, right now we have (on R v2.7.0 patched (2008-04-23 r45466)) that: > rawToChar(raw(0)) [1] "" > rawToChar(raw(0), multiple=TRUE) character(0) Is this intended or should both return character(0)? Personally, I would prefer that an empty input vector returns an empty output vector. Same should then apply to charToRaw(), but right now we get: > x <- character(0) >
1997 May 23
0
R-alpha: apropos() available
Martin and I have `written' a function apropos() for finding all objects with names matching pattern. I attach code and documentation. Perhaps one could include it in the distribution proper. We are not sure about returning the position in the search list along with the matching names found. Martin thinks it should be on by default, I think it should be off so that the functions does the
2008 Nov 14
0
(PR#13283) R crashes on sprintf with bad format
But %S is not valid in C99 or POSIX, even if it is a variant in some systems. I am working on a more careful checker right now, but there will be limits to what we can catch: this was already a pretty rare example. Brian On Fri, 14 Nov 2008, William Dunlap wrote: >> From: r-devel-bounces at r-project.org >> [mailto:r-devel-bounces at r-project.org] On Behalf Of Prof Brian Ripley
2006 Dec 14
1
A possible improvement to apropos
Hello all, I've had the following apropos alternative in my ~/.Rprofile for some time, and have found it more useful than the current version. Basically, my version ignores case when searching. If others find this useful, perhaps apropos could be suitably patched (and I'd be willing to create such a patch). + seth Here is my version of apropos: APROPOS <- function (what, where =
2013 May 08
1
getting corrupted data when using readBin() after seek() on a gzfile connection
Hi, I'm running into more issues when reading data from a gzfile connection. If I read the data sequentially with successive calls to readBin(), the data I get looks ok. But if I call seek() between the successive calls to readBin(), I get corrupted data. Here is a (hopefully) reproducible example. See my sessionInfo() at the end (I'm not on Windows, where, according to the man page,
2006 Dec 22
1
apropos changes in r-devel: intended feature or bug?
The old apropos started with: if (!is.character(what)) what <- as.character(substitute(what)) The new one has: if (character.only) stopifnot(is.character(what)) else what <- as.character(substitute(what)) i.e., the check for is.character(what) is missing. This has the effect that 'what' can no longer be a character string generated by a function call