Displaying 20 results from an estimated 7000 matches similar to: "Underscore character in Rd files"
2007 Jan 17
5
percent sign in plot annotation
Hello,
I would like to annotate a graph with the expression 'alpha = 5%' (the
alpha should be displayed as the greek letter).
I tried
> text(1,1,expression(alpha == 5%))
which gives a syntax error.
escaping the percent sign (\%) or doubling (%%) does not help.
What do I do?
Thanks,
Martin Keller-Ressel
--
Martin Keller-Ressel
Research Unit of Financial and Actuarial
2005 Jul 05
1
timezone problems
Hi,
Im using R 2.1.1 and running Code that previously worked (on R 2.1.0 I
believe) using the 'timeDate' function from the fCalendar package. The
code now throws an error:
Error in if (Sys.timezone() != "GMT") warning("Set timezone to GMT!")
However I have read the documentation of the fCalendar package and I have
set my system variable TZ to GMT.
I tracked the
2004 Apr 06
2
R loosing history
Hello,
Im running R 1.8.1 on Win2000 and frequently using the function history()
to keep track of what I did in my R session.
In a recent session I typed history(max=Inf) and to my surprise there were
only 15 lines of code where there should have been approx. 300 lines and I
lost a lot of valuable work.
Do you have any idea what caused this behaviour? help(history) didn't make
me any
2020 Sep 23
3
jitter-bug? problematic behaviour of the jitter function
Dear all,
i have noticed some strange behaviour in the ?jitter? function in R.
On the help page for jitter it is stated that
"The result, say r, is r <- x + runif(n, -a, a) where n <- length(x) and a is the amount argument (if specified).?
and
"If amount is NULL (default), we set a <- factor * d/5 where d is the smallest difference between adjacent unique (apart from fuzz) x
2020 Sep 23
3
jitter-bug? problematic behaviour of the jitter function
Dear all,
i have noticed some strange behaviour in the ?jitter? function in R.
On the help page for jitter it is stated that
"The result, say r, is r <- x + runif(n, -a, a) where n <- length(x) and a is the amount argument (if specified).?
and
"If amount is NULL (default), we set a <- factor * d/5 where d is the smallest difference between adjacent unique (apart from fuzz) x
2004 Sep 28
2
specifying exports for R CMD SHLIB
Hi,
How can I specify which functions should be exported when I build a
shared library with 'R CMD SHLIB foo.c'??
I tried putting a file named foo.def in the same directory with the
line 'EXPORTS' and the names of the functions to be exported, but the
file is deleted in the build process.
Any help is appreciated,
Martin Keller-Ressel
2004 Oct 26
1
Error in lazyLoadDBfetch
Hello,
what does the following error mean??
It occured during or at the end of a lengthy (and memory-intensive)
calculation using a routine from a shared library called via the '.C'
function:
Error in lazyLoadDBfetch(key, datafile, compressed, envhook) :
recursive default argument reference
I could not find any help with help.search("lazyLoadDBfetch")
Im using R
2003 Nov 03
2
calling R from Perl
Hi,
I want to call R from Perl to generate plots to be displayed on a
webpage. What I found out so far is that there is a package called
RSPerl on www.omegahat.org which should do what I need. However in
the description it says it has been tested with R 1.3.* the latest.
I'm using R 1.8.0 right now so the package seems rather unmaintained.
It is not easy for me to just install it and see
2013 Jan 04
1
Bug in R CMD check for \ in Rd?
Hi,
I have a function knit_expand() and its source/Rd are below:
https://github.com/yihui/knitr/blob/master/R/template.R#L43-L44
https://github.com/yihui/knitr/blob/master/man/knit_expand.Rd
When I run R CMD check on the package I get this warning (with both R
2.15.2 and R-devel):
* checking for code/documentation mismatches ... WARNING
Codoc mismatches from documentation object
2020 Sep 23
0
[R] jitter-bug? problematic behaviour of the jitter function
Hello,
R 4.0.2 on Ubuntu 20.04, sessionInfo at end.
This came up in r-help, I'm answering to the OP and also posting to
r-devel since I believe it is more appropriate there.
I can confirm this. The original instructions are the first and the
last, but even with smaller numbers the error shows up.
set.seed(2020)
jitter(c(1,2,10^4)) # desired behaviour
#[1] 1.058761 1.957690
2001 Jul 27
2
Seemingly bizarre behavior in R CMD check
Maybe someone can help shed some light on an odd and repeatedly irritating
error I noticed when running the check Perl script on my R 1.3 project. In
following it line by line, I traced my problem down to the
code/documentation matching within check, the most recent version of which
seems to verify proper .Rd formatting by means of R's codoc and undoc
functions. Under R --vanilla, those two
2005 Oct 10
1
'R CMD check' gets apparently confused by '%' (PR#8198)
Full_Name: Laurent
Version: R-2.0.0-beta-from-a-week-ago
OS: linux
Submission from: (NULL) (202.156.6.77)
When running 'R CMD check' for a package that contains the symbol '%'
in the signature of a function (say the default parameter for a string argument
is like "10% - 20%"), the 'codoc' part of the check throws a warning
about mismatching doc and codoc.
While
2003 Apr 22
2
Handling of upper/lowercase in package names (PR#2816)
Hi,
This is (presumably?) a bug in R 1.7.0 under Windows. I have not tested it
on other systems. Attachment of packages is case sensitive but not
library(), resulting in multiple loadings of the same package if the library
name is spelled differently. The following example loads the `tools'
package, once as `tools' and once as `Tools'. This behavior is the same with
all packages and
2005 Aug 16
1
Fwd: Documenting data sets with many variables
Hi,
since nobody answered to my first message, I try to explain my problem more
clearly and more general this time:
I have a data set in my R package "micEcon", which has many variables (82).
Therefore, I would like to avoid to describe all variables in the "\format"
section of the documentation (.Rd file). However, doing this lets "R CMD
check" complain about
2007 May 30
2
S4 assignment \alias and \usage
What is the Rd file alias and usage syntax for an S4 assignment method?
I have been trying variations on
\alias{TSdoc<-,default-method}
\usage{
\S4method{TSdoc}{default}(x) <- value
but so far I have not got it right according to various codoc, etc, checks.
Paul Gilbert
====================================================================================
La version fran?aise
2003 Aug 12
2
Replacing underscore character in Windows GUI
Hello, all,
I'd like to propose that now that the underscore-as-assignment-operator
is to be removed from R (good thing, too), that the Windows GUI should
replace the underscore ``_'' with the proper assignment operator ``<-''
when you type in the underscore character.
This is the current default behaviour in the ESS mode in emacs, and seems
to me to be a generally good
2009 Nov 17
1
Codoc mismatches
I have a function:
source_dir <- function(path, pattern = "\\.[rR]$", chdir = TRUE) ...
documented with
...
\usage{source_dir(path, pattern="\\.[rR]$", chdir=TRUE)}
...
But I get
Codoc mismatches from documentation object 'source_dir':
source_dir
Code: function(path, pattern = "\\.[rR]$", chdir = TRUE)
Docs: function(path, pattern =
2010 Feb 02
1
codoc mismatches warning
Hi,
Doing 'R CMD check diveMove' is now throwing this message:
Data codoc mismatches from documentation object 'sealLocs':
Variables in data frame 'sealLocs'
Code: id.time.class.lon.lat
Docs: class id lat lon time
with:
R> sessionInfo()
R version 2.10.1 (2009-12-14)
x86_64-pc-linux-gnu
locale:
[1] LC_CTYPE=en_CA.UTF-8 LC_NUMERIC=C
2006 Jan 15
8
Underscore character in session var
I stumbled across a weird problem
i can do:
@session[:userid] = 1
but cant:
@session[:user_id] = 1
The second session var doesnt set.
Is there a config setting for this?
--
Posted via http://www.ruby-forum.com/.
1999 Aug 30
3
using underscore character in column names
Suppose you're reading data from a file in which the
column names contain underscore characters. Example:
------ start of file -----
pos_x pos_y
1.0 0.0
2.0 1.0
------ end of file -------
Using read.table, I can read this file just fine:
> data <- read.table (file="data", head=T)
> data
pos_x pos_y
1 1 0
2 2 1
>
However, I can't