Displaying 20 results from an estimated 1000 matches similar to: "Encoding problem in Rd file"
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}
2009 Feb 20
1
NOT an R problem: cannot install packages from distant repository
I met today a computer crash and our maintenance officer had to reinstall
some components of the OS (MS Windows XP Pro) as well as the Internet
browser (among other things). Now, I cannot install packages from a distant
repository:
> utils:::menuInstallPkgs()
Error in .readRDS(pfile) : unknown input format
> traceback()
5: .readRDS(pfile)
4: .packages(all.available = TRUE)
3:
2010 Oct 18
1
R 2.12.0 for Windows: error when loading (some) packages
Dear all,
I have installed the latest version of R 2.12.0 available on CRAN
(http://cran.r-project.org). When I try to load the recommended
package lattice:
> library(lattice)
Error: package 'lattice' is not installed for 'arch=i386'
I am running Rgui using
C:\R\R-2.12.0\bin\i386\Rgui.exe --vanilla
> sessionInfo()
R version 2.12.0 (2010-10-15)
Platform:
2007 May 27
1
lattice plots: filled points in the key
I wonder why the following code does not produce filled points in the
key, as I would have expected:
> library(lattice)
> x <- 1:10
> y <- rnorm(10)
> xyplot(y ~ x, pch = 21, col = "black", fill = "grey",
+ key = list(space = "top",
+ text = list("data"),
+ points = list(pch = 21, col =
2007 Apr 01
1
new warnings related to the extractor "$" with R 2.5.0alpha
Dear all,
I just installed R 2.5.0alpha and noticed new warnings related to the
extractor "$" when using contributed packages. For instance:
> library(RODBC)
Warning message:
$ operator is not valid for atomic vectors, returning NULL
> library(aod)
Package aod, version 1.1-18
> data(orob2)
> m1 <- betabin(cbind(y, n-y) ~ 1, random = ~ 1, data = orob2)
>
2020 Apr 07
4
Hard memory limit of 16GB under Windows?
Hi Tomas,
Many thanks for your answer.
Here is a copy of a fresh session under RStudio, and after a copy under
Rgui.
Strangely enough the result of memory.limit() is not the same. Without
your question I would not have looked to RGui, being used to work with
RStudio.
The value under RGui sounds to correspond to the total RAM of the
computer. It makes me noticing that the value is in MB.
2007 Oct 04
1
Problem with .libPaths & Rterm.exe (under Vista)
Dear list,
I?m using R embedded in another program (coded in tcl/tk) under Windows
Vista. In this context I don?t launch Rgui.exe but rather Rtem.exe.
Now I have a problem finding libraries not specifically installed as
administrator (and which are not in the path ?program files? but in
Contacts\Documents of the current user). To be precise, the user
launching my tcl/tk program can?t find
2008 Sep 19
1
readRegistry function (PR#12937)
Full_Name: Zivan Karaman
Version: 2.7.2
OS: Windows XP
Submission from: (NULL) (195.6.68.214)
I'm puzzled by the readRegistry function.
Shouldn't the "hive" argument be something like
c("HLM", "HCR", "HCU", "HU", "HCC", "HPD") rather than
c("HLM", "HCR", "HCU", "HU",
2009 Sep 24
1
how to make a function recognize the name of an object/vector given as argument
Dear guRus,
I'd like to learn how to make a function recognize the name of an
object/vector given as argument
If I have :
testFun <- function(x,y) plot(x,y, main=paste("plot
of",names(x),"and",names(y)) ) # this just a simple example ...
a1 <- 5:8
b1 <- 9:6
testFun(a1,b1)
# Returns the plot, but not the names of the objects/vectors given as
arguments,
# but
2012 Jun 01
1
Error: package 'myLib' is not installed for 'arch=i386'
Hello,
I 'd like to use some functions in myLib. So I do:
library(myLib)
Then I get this message:
Error: package 'myLib' is not installed for 'arch=i386'
> sessionInfo()
R version 2.13.2 (2011-09-30)
Platform: i386-pc-mingw32/i386 (32-bit)
locale:
[1] LC_COLLATE=French_France.1252 LC_CTYPE=French_France.1252
LC_MONETARY=French_France.1252 LC_NUMERIC=C
2007 Nov 28
2
alternatives to traditional least squares method in linear regression ?
Dear list,
I have encountered a special case for searching a linear regression
where I'm not satisfied with the results obtained using the traditional
least squares method (sometimes called OLS) for estimating/optimizing
the residues to the regression line (see code below). Basically, a
group of my x-y data are a bit off the diagonal line (in my case the
diagonal represents the ideal or
2007 Mar 11
1
Sys.setlocale("LC_CTYPE","fr_FR.UTF-8")
Dear R users,
I'm trying to have a gWiddgetsRGtk2 script run under R-2.4.1. The script
run OK under Linux but all accentuated characters appear as "?" when the
script is run under Windows.
As Gtk+ requires UTF-8, I thought it was the source of the problem and
tried to change the default encoding (1252) in the following way:
2009 Mar 10
1
require() is not giving TRUE / FALSE statements ?
Dear list,
?require says :
"... |require| is designed for use inside other functions; it returns
|FALSE| and gives a warning (rather than an error as |library()| does by
default) if the package does not exist ..."
However when I run the following code I don't get any TRUE / FALSE
statements (but the warning only).
Since I want to test from inside of a function if a given package
2011 Aug 02
2
Memory limit in Aggregate()
Dear all,
I am trying to aggregate a table (divided in two lists here), but get a
memory error.
Here is the code I'm running :
sessionInfo()
print(paste("memory.limit() ", memory.limit()))
print(paste("memory.size() ", memory.size()))
print(paste("memory.size(TRUE) ", memory.size(TRUE)))
print(paste("size listX ", object.size(listX)))
2018 Apr 03
2
names lost in functions from packages installed by R-devel r74500
Dear list members,
If I install with R-devel r74500 on Windows (sessionInfo below) the
attached 'bugdemo' package with the single function
foo <- function() {
? named <- c("bar"=TRUE)
? print(named)
? return(named)
}
then run
> bugdemo::foo()
[1] TRUE
[1] TRUE
The "bar" name is lost. It is not lost when I define foo in the R
session instead of using
2007 Apr 19
1
Error with strptime
Dear All,
I am trying to convert to POSIXct after pasting a date and a time in
character format with strptime.
It is probably obvious but I don't understand why I get an error message
after
bsamp$spltime<-strptime(test,format="%d-%B-%y %H:%M")
whereas I can get what I want if I do it in 2 steps and rbinding ?
Thanks and best regards, Jean-Louis
This is the R console output
2008 Oct 09
1
Error when reading a SAS transport file
Dear All,
I get the following error when using either SASxport or Hmisc to read an
.xpt file:
> w <- read.xport("D:/consult/Trophos/dnp/base/TRO_ds_20081006.xpt")
Erreur dans factor(x, f$value, f$label) :
invalid labels; length 15 should be 1 or 14
> z<- sasxport.get("D:/consult/Trophos/dnp/base/TRO_ds_20081006.xpt")
Erreur dans factor(x, f$value, f$label) :
2018 Apr 09
1
linear regression with repeated measures
Dear list,
this seemed to me like a very trivial question, but finally I haven't found
any similar postings with suitable solutions on the net ...
Basically, instead of regressing two simple series of measures 'a' and 'b'
(like b ~ a), I would like to use independent replicate measurements for
each variable at each level (ie, instead of having just one 'a' and one
2005 Jun 16
1
identical results with PQL and Laplace options in lmer function (package lme4)
Dear R users
I encounter a problem when i perform a generalized linear mixed model (binary data) with the lmer function (package lme4)
with R 2.1.0 on windows XP and the latest version of package "lme4" (0.96-1) and "matrix" (0.96-2)
both options "PQL" and "Laplace" for the method argument in lmer function gave me the same results (random and fixed effects
2009 Mar 27
1
Sweave-output causes error-message in pdflatex
Dear list,
Latex/Sweave has trouble processing Sveave-output coming from the
summary-command of a linear Model.
>summary(lmRub)
The output line causing the trouble looks in R like this
Signif. codes: 0 ?***? 0.001 ?**? 0.01 ?*? 0.05 ?.? 0.1 ? ? 1
In my Sweaved Tex-file that line looks like this
Signif. codes: 0 ?***? 0.001 ?**? 0.01 ?*? 0.05 ?.? 0.1 ? ? 1? (actually
in the editor the