Displaying 20 results from an estimated 1100 matches similar to: "same random numbers in different sessions"
2010 Nov 10
1
error on R CMD rtags
Dear all
I'm getting a strange error when trying to use rtags() to generate
tags in Emacs format.
root at liv-laptop:/usr/lib/R# R CMD rtags -o /usr/local/build/ETAGS
--no-Rd --no-c library/
Tagging R files under library/; writing to /usr/local/build/ETAGS
(overwriting)...
[..]
Error: '\.' is an unrecognized escape in character string starting "[.]*\."
Execution halted
2012 May 05
3
alarm() doesn't beep
Dear all
I'd like to make a beeping sound in R, but alarm() doesn't beep? I
checked ?alarm but I couldn't find any pointers to system
configuration. Any ideas?
Regards
Liviu
> sessionInfo()
R version 2.14.2 (2012-02-29)
Platform: x86_64-pc-linux-gnu (64-bit)
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5]
2010 Feb 02
3
Update problem? Rcmdr disappears, won't re-open
WinXP, R 2.10.1
I just updated R, and now have trouble. Perhaps it was the method I used to
keep all the packages.
I copied all the new packages from 2.10.1 back into the 2.10.0 folder, then
copied them and all the others I've previously added from the 2.10.0 folder
and pasted them back into 2.10.1's appropriate folder.
Is this the source of my troubles?
I am trying unsuccessfully to
2008 Sep 11
2
Plot qnorm
Hi,
I have this problem:
X is hazardous variable N(mean 2, sd=3)
>>question 1) Find the c value, so that P(X>c)=0.10. using R
>>question 2) Graph the function N(2,3) and with this graph, explain what
you do in question number 1.
I just found question number one but not the second one. So, I'd like to
make a plot form this distribution N (2,3) using the functions plot and
2011 Apr 21
3
R CMD Sweave versus Sweave() on Windows
Dear list subscriber,
I am quite puzzled by the behaviour of processing Sweave files within an R session, i.e.
Sweave("foo.Rnw") versus R CMD Sweave foo.Rnw
In the former the environmental variable 'SWEAVE_STYLEPATH_DEFAULT = TRUE' is obeyed (this is set in etc/Renviron.site as well as under the users home directory in .Renviron). That is the hard-coded path to Sweave.sty is
2011 Feb 07
2
Error with named chunks in Sweave with the development version of R
Dear all,
There seems to be a problem with named chunks in Sweave with the version
of R under development (downloaded yesterday). When I sweave the file
toto.Rnw described at the end of this mail (Ubuntu 10.04 LTS), the
function Sweave returns an Internal error:
> utils::Sweave("toto.Rnw")
Writing to file toto.tex
Processing code chunks ...
1 : echo term verbatim (label=a)
2
2011 Dec 09
3
ggplot with geom_tile
Dear R-users,
I am trying to make a plot with ggplot-geom_tile(), but cannot remove some unwanted (white) lines through my plot.
Below a reproducible example:
#####
library(ggplot2)
tot=as.data.frame(rep(seq(-50,50,5),each=21))
names(tot)="precip"
temp=rep(seq(-5,5,0.5),21)
tot$temp=temp
disc=array(dim=c(21,21))
for(i in 1:21){
for(y in 1:21){
temp<-
2011 Jul 06
1
trouble parsing a date using strptime()
Hi,
I am having a trouble parsing dates using strptime() that I get in the
format of year and week number. The data looks like this "201127" which
means year 2011 and week 27. I would like to graph this using ggplot but
then I get a gap between 201054 and 201101 so I thought I would just easily
convert it.
I tried to use strptime and as.Date and the format string of %Y%W but it
seems
2016 Jun 18
1
vignette output: word_document problems
Hello:
Clicking "Knit Word" in RStudio 0.99.893 with R 3.3.0, works
fine with a vignette with "output: word_document". However, "R CMD
build" throws the following error:
$ R CMD build pkgW2vignettes
* checking for file ?pkgW2vignettes/DESCRIPTION? ... OK
* preparing ?pkgW2vignettes?:
* checking DESCRIPTION meta-information ... OK
* installing the
2012 Apr 11
1
Problem with effects package
> sessionInfo()
R version 2.15.0 (2012-03-30)
Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit)
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] grid datasets splines utils stats
[6] graphics grDevices methods base
other attached packages:
[1] effects_2.1-0 colorspace_1.1-1
[3] nnet_7.3-1
2012 Mar 16
1
Change in behavior of update.views()?
I haven't seen this cryptic warning before:
> update.views('Robust')
Warning message:
In update.views("Robust") :
The following packages are not available: covRobust, distr, FRB, MASS, mblm, multinomRob, mvoutlier, quantreg, RandVar, rgam, RobAStBase, robfilter, RobLox, RobRex, robust, RobustAFT, robustbase, ROptEst, ROptRegTS, rrcov, sandwich, wle
>
2010 Nov 07
1
Rdindex truncating titles?
When building packages these days I keep getting warnings from
"R CMD build" to the effect that INDEX is not up to date. The
INDEXes always seem to be up do to date to *me*.
Then I thought to compare the INDEX from the package source with
the INDEX in the installed package (after building with the --force
flag set).
Doing a diff on the old INDEX (saved outside the source package
2010 Nov 07
1
Sweave: option keep.source=TRUE and package cacheSweave
Dear all,
When I use the cacheSweave package together with the Sweave option
keep.source = TRUE, all the LaTeX code before the Sweave code chunk is
included in the TeX file to be compiled. For example, with the
following Sweave file
\documentclass[12pt]{article}
\usepackage[nogin]{Sweave}
% Sweave options
\SweaveOpts{keep.source=TRUE, strip.white=TRUE, eps=FALSE, pdf=TRUE}
\begin{document}
2011 Aug 08
1
Xll.options().
This question seemed to me to be more appropriate for r-devel
than for r-help. My apologies if this is not the case.
Recently I installed ``cairo'' on my lap-top so that I could make
use of the (newish) polypath() function, with on-screen graphics.
(The polypath() function does not work with X11(type="Xlib").)
The installation went smoothly, X11(type="cairo") works
2010 Oct 12
1
FW: [R] same random numbers in different sessions
From R-help
...
>I notice that you have the IPSUR package loaded; you know, just a
>shot in the dark here, but did you try not loading it?
>
>I ask because the vignette is built by making a special choice for
>set.seed, and the workspace that ships with the package might be
>interacting in an unexpected way.
Is it possible that a package can save a set seed and have the effect
2011 Apr 14
4
Problem with R 2.13.0 Task Views (on Mac)
Dear R-users,
After upgrading to the recent version of R, I'm having a problem updating task views:
> sessionInfo()
R version 2.13.0 (2011-04-13)
Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit)
locale:
[1] en_US.UTF-8/en_US.UTF-8/C/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] datasets utils stats graphics grDevices methods base
other attached packages:
[1]
2009 Dec 21
2
checking Rd cross-references ... WARNING
Dear all
I am getting this strange error when checking my package. Would you
have an idea what causes it?
Thank you
Liviu
* checking Rd cross-references ... WARNING
Error in .find.package(package, lib.loc) :
there is no package called 'KernSmooth'
Calls: <Anonymous> -> lapply -> FUN -> .find.package
Execution halted
> sessionInfo ()
R version 2.10.0 (2009-10-26)
2010 Oct 19
1
[R 2.12] install.packages() with no lib argument does not work
Dear R users,
I have just upgraded R from 2.11 to 2.12 on Ubuntu 9.04 (see more informations
at the end) from the cran apt-get repository. One of the new things concerning
the install.packages() function is stated here :
install.packages() and remove.packages() with lib unspecified and multiple
libraries in .libPaths() inform the user of the library location used with
a message
2012 Feb 23
1
Sexpr not getting expanded in Sweave
An Sweave file, 'test.Rnw':
\documentclass{article}
\title{Sweave minimal}
\author{MK}
\begin{document}
\maketitle
We try Sweave:
<<1>>=
data(airquality)
summary(airquality)
x <- airquality[1, 1]
@
I try Sexpr: \Sexpr{x}
We plot:
\begin{center}
<<2, fig=TRUE, echo=FALSE >>=
boxplot(Ozone ~ Month, data = airquality)
@
\end{center}
\end{document}
I check the
2012 May 22
2
getting a Likert plot from a data frame
I'm creating a stacked bar chart using the likert command in the HH package. My data are in a data frame, with two numeric variables and a categorical variable, I can't get likert to use the column containing the categorical variable as a my y axis label.
Here is a quick example:
library(HH)
#my data are: