On Sun, May 28, 2023 at 1:46 PM Duncan Murdoch wrote:
>
> Is there a way to open a graphics device that plots entirely to an array
> or raster in memory? I'd prefer it to use base graphics, but grid would
> be fine if it makes a difference.
>
> For an explicit example, I'd like to do the
On Mon, Jun 15, 2020 at 2:47 PM Luigi Marongiu wrote:
>
> Hello,
> all of a sudden rstudio stopped working on ubuntu 20.04. I
> re-installed from `rstudio-1.3.959-amd64.deb` but it does not launch
> even if there is an icon. On terminal I got:
> ```
> $ rstudio
> rstudio: error while loading
On Wed, Apr 29, 2020 at 11:37 PM Steven wrote:
>
> Hello John,
>
> Perhaps you can help me. I am an idiot. I visited the Rtools web page
> and learn to run the following lines in R: Still I am getting the same
> warning message.
>
> > writeLines('PATH="${RTOOLS40_HOME}\\usr\\bin;${PATH}"', con =
On Thu, May 2, 2019 at 9:36 AM Martin Maechler
wrote:
>
> > Shuguang Sun
> > on Thu, 2 May 2019 12:57:37 +0800 writes:
>
> > Hi all,
> > When I try to compile R 3.6 in windows 10 in Rtools35, it raised the
> error message:
> > --8<---cut
You probably have a malconfigured homebrew installation of R. On MacOS
it is recommended to use the CRAN version of R
https://cran.r-project.org/bin/macosx/. The homebrew version depends
on gcc compilers and does not support cran binary packages.
If you really want to use the homebrew R try
On Sat, Oct 24, 2015 at 1:35 PM, Duncan Murdoch
wrote:
>
> > However, editing the file with a text editor to create "proper" EOF
> > doesn't help.
>
> The problem is that you have valid-looking JSON objects on each odd
> numbered line, separated by single blank lines.
> On Tue, Oct 6, 2015 at 9:42 PM, Sasikumar Kandhasamy
> wrote:
>> Thanks a lot Mike. The Linux distribution we use is "Red Hat Enterprise
>> Linux Server release 6.2".
On RHEL and CentOS the easiest and most reliable way to get R and R
packages is via EPEL. Simply add the
On Mon, Mar 9, 2015 at 3:39 PM, Hui Du hui...@savvyrookies.com wrote:
readLines(url)
Error in file(con, r) : cannot open the connection
In addition: Warning message:
In file(con, r) : unsupported URL scheme
Try:
library(curl)
readLines(curl(url))
[[alternative HTML version
On Sat, Jan 31, 2015 at 1:36 PM, Fisher Dennis fis...@plessthan.com wrote:
followed by a series of errors:
gcc -m32 -shared -s -static-libgcc -o ../compiled/Windows32.so tmp.def
ConvertSAS.o CKHashTable.o readstat_convert.o readstat_bits.o readstat_io.o
readstat_sas.o
On Wed, Jan 14, 2015 at 7:40 PM, Jeroen Ooms jeroen.o...@stat.ucla.edu wrote:
Try 'precise' instead of 'utopic'
I meant 'trusty'. The version should match the underlying ubuntu:
http://www.linuxmint.com/oldreleases.php
__
R-help@r-project.org mailing
Try 'precise' instead of 'utopic'
On Wed, Jan 14, 2015 at 7:31 PM, John Sorkin
jsor...@grecc.umaryland.edu wrote:
I am trying to install R on Linux mint 17.1. I followed the instructions
found on CRAN and got a messages about unmet dependencies. I detail below the
steps I took:
I added deb
Hi all,
We are exactly one month away from the useR! 2014 conference [1]. Time
for an update from the organizing committee.
This weekend, registrations passed the 500 mark, which is a new record
for useR! according to data collected by Gergely Daróczi [2]. Yet,
there is plenty of additional
We are happy to inform you that abstract submission for
useR! 2014 is now available online, see
http://user2014.stat.ucla.edu/
The R User Conference, useR! 2014 is scheduled for July 1-3, 2014 at
the University of California, Los Angeles. Before the official
program, half-day tutorials will
I am looking for a function to flatten a list to a list of only 1
level deep. Very similar to unlist, however I don't want to turn it
into a vector because then everything will be casted to character
vectors:
x - list(name=Jeroen, age=27, married=FALSE,
home=list(country=Netherlands,
...@gmail.com wrote:
do.call(c, x)
maybe?
On Tue, Jun 26, 2012 at 02:25:40PM -0700, Jeroen Ooms wrote:
I am looking for a function to flatten a list to a list of only 1
level deep. Very similar to unlist, however I don't want to turn it
into a vector because then everything will be casted
-
From: Jeroen Ooms jeroen.o...@stat.ucla.edu
To: Neal Fultz nfu...@gmail.com
Cc: r-help@r-project.org
Sent: Tuesday, June 26, 2012 6:23 PM
Subject: Re: [R] flatten lists
Hmm that doesn't seem to work if the original list is nested more than
2 levels deep. I should have probably given
Someone supplied me with an SPSS datafile that caused a buffer
overflow and then a crash when reading it in R. Unfortunately I can't
supply the dataset at hand and I have a hard time reproducing it with
a toy example. But I found at least 2 issues that might be related. I
would like to know which
Unfortunately I found myself in the same position as outlined above, where I
was requested to reproduce 'standardized regression coefficients' as
reported by SPSS. Below an example that produces something very similar to
the results table from an SPSS Linear Regression procedure, including the
Bumping this one up because the 'before.plot.new' solution turned out
to be sub-optimal after all.
It should be possible to do this with a before.plot.new hook, right?
Yes, sure, if you treat the first and last plot separately.
It turns out that the before.plot.new hook does not is not
Thanks I didn't know about that. I ended up with something like this.
Is there a more elegant way to do it?
myplots - list();
hasplots - FALSE;
setHook(before.plot.new, function(...) {
if(hasplots == FALSE){
hasplots - TRUE;
} else {
myplots[[length(myplots)+1]] -
Of Jeroen Ooms
Sent: Monday, July 11, 2011 12:22 PM
To: David Winsemius
Cc: r-help@r-project.org
Subject: Re: [R] Save generic plot to file (before rendering to device)
You can also save a data (or function) object to an .Rdata file with
save(objname, file=filename.Rdata) and your colleagues could
You can also save a data (or function) object to an .Rdata file with
save(objname, file=filename.Rdata) and your colleagues could then
load(filename.Rdata) in R.
Thanks for the responses. I found an old post by Gabor Grothendieck that
shows what I want. Basically the trick is to save the
I need to convert a dataframe to a record-structure, to be able to encode it
later in JSON. Suppose this is the data:
mydata - data.frame(foo=1:3, bar=c(M,M,F));
I would like to convert this to a unnamed list (json array) of key-value
pairs. For example like this:
apply(data.frame(foo=1:3,
apply() operates on arrays and a data frame will be coerced to a matrix
(which requires all elements to be of the same type). This is documented in
?apply.
Thanks, I was not aware of that. I implicitly assumed there would be a
specific apply.data.frame.
This may not be elegant, but why
I have a dependent variable with is very peaked and has heavy tails,
something I haven't encountered before. (histogram:
http://postimage.org/image/2sw9bn8pw/). What could be an appropriate family
or transformation to do regress on this?--
View this message in context:
Is there an easy way to turn a vector of length n into an n by n matrix, in
which the diagonal equals the vector, the first off diagonal equals the
first order differences, the second... etc. I.e. to do this more
efficiently:
diffmatrix - function(x){
n - length(x);
M - diag(x);
I was wondering if there exists a function that automatically tries to detect
the format of a datafile. E.g. if it is an ascii datafile, that it can
detect appropriate defaults for the read.table() parameters. One could for
example read the first 10 lines of the file and analyze the format of the
No, but what is wrong with using system()?
The application is running in a very sandboxed environment and might
not have permission to execute 'file'.
'file' is large and complex because it tries to be comprehensive (but it
still does not know about some common systems, e.g. 64-bit Windows
Is there a way in R (in Linux) to detect the type of a file without invoking
a shell? E.g to do this:
system(file density.plot)
density.plot: PDF document, version 1.4
but without using system()? I tried file() and file.info(), but both do
display the information I am looking for.
--
View
The problem has been resolved thanks to Tom Callaway from Redhat:
Tom Callaway wrote:
Looking at the R source code, it uses Cairo to do the SVG creation, and
the Cairo in RHEL-5 is very (very) old (1.2.4).
Digging through Cairo's changelogs post 1.2.4, I came across this:
SVG: Fix bug
it this
way...
Cheers
Felix
On 14 March 2011 14:24, Jeroen Ooms jeroeno...@gmail.com wrote:
I would like to define a recursive equivalent to call or do.call, which
takes
a vector of multiple function names and 'chains' them, by greedy matching
of
arguments down the chain. For example, I would
to print.default), and then
there is S4 to think about. Also, can arguments be matched by partial
names? Can they be given in the argument list without a name?
My point is that you had better have a good reason to want to do it this
way...
Cheers
Felix
On 14 March 2011 14:24, Jeroen
There is an issue with the default svg device on a centos workstation that I
am using. It does not result in an error, but it produces malformed svg
images. Exactly the same script works just fine on an ubuntu box. On Ubuntu
I am using R binary that comes with maverick, on centos I am using the
I would like to define a recursive equivalent to call or do.call, which takes
a vector of multiple function names and 'chains' them, by greedy matching of
arguments down the chain. For example, I would like to be able to do:
rec.do.call(c(glm,coef,print), list(formula=dist~speed, digits=3,
into infinite
recursion if every list's attributes is another list with at least a 'names'
attribute?
On Tue, Mar 1, 2011 at 2:30 AM, Duncan Murdoch murdoch.dun...@gmail.comwrote:
On 11-02-28 11:17 PM, Jeroen Ooms wrote:
I am trying to encode arbitrary S3 objects by recursively looping
I am trying to encode arbitrary S3 objects by recursively looping over the
object and all its attributes. However, there is an unfortunate feature of
the attributes() function that is causing trouble. From the manual for
?attributes:
The names of a pairlist are not stored as attributes, but are
What is the most efficient method of parsing a dataframe-like structure that
has been json encoded in record-based format rather than vector based. For
example a structure like this:
[ {name:joe, gender:male, age:41}, {name:anna,
gender:female, age:23} ]
RJSONIO parses this as a list of lists,
I am trying to reproduce this setting, but it does not seem to work anymore.
I keep getting the error: execve failed: No such file or directory.
One of the reasons is that /usr/local/bin/Rserve is no longer a standalone
executable, and is now initiated using R CMD Rserve. However, after making
We're using Rserve as a back-end in our application. A problem that we
experienced is that the Rserve connection gets stuck when R is asking for
some kind of user interaction. For example, when executing an
'install.packages' command for the first time without specifying the repos
argument, R
When read.table imports a table that includes a header called 'Date', it
tries to recognize the date format. For example, if one imports this data
from Yahoo finance, the Date column is automatically transformed to Y-m-d,
whereis in the data it appears as m/d/Y:
myData -
Yes I know I can manually do it, but I am using it for scripts in which users
upload files. Hence, I don't know what's going to come; I don't know on
before hand whether data will contain Dates, and in which columns they
appear. This is why I was surprised that read.table has some (undocumented)
Ah Phil Spector is right, nothing is converted. I'm almost too embarrassed to
admit it, but actually, it was Excel that tricked me. It displays date
fields differently than they are stored in the csv file, and once you press
'save', it saves everything to a different format, completely unasked.
A new version of the ggplot2 web interface has been released. Info and a demo
video are available here: http://www.stat.ucla.edu/~jeroen/ggplot2/. The new
version has a lot of new features, like advanced data import, integration
with Google docs, converting variables from numeric to factor to
Fishery Biologist
Department of the Interior
US Fish Wildlife Service
California, USA
--- On Sun, 12/6/09, Jeroen Ooms jeroen.o...@stat.ucla.edu wrote:
From: Jeroen Ooms jeroen.o...@stat.ucla.edu
Subject: [R] yeroon.net/ggplot2 web application v0.11
To: r-help@r-project.org
Date: Sunday
A new version of the ggplot2 web application is available at
http://www.yeroon.net/ggplot2. New features include 1D geom’s
(histogram, density, freqpoly), syntax mode (by clicking the tiny
arrow at the bottom), and some additional facet options. Furthermore
some minor improvements and fixes, most
integration?
-
Jeroen Ooms * Dept. of Methodology and Statistics * Utrecht University
Visit http://www.jeroenooms.com www.jeroenooms.com to explore some of my
current projects.
--
View this message in context:
http://old.nabble.com/multivariate-numerical-integration.-tp26164395p26164395
. What could be an appropriate package or function for one-dimensional
bounded optimization, that includes some protection against local minima?
-
Jeroen Ooms * Dept. of Methodology and Statistics * Utrecht University
Visit http://www.jeroenooms.com www.jeroenooms.com to explore some of my
feedback/suggestions/bugreports are welcome of course.
note: because this is a public demo server, R sessions are currently limited
to 40seconds. If you experience timeouts, try again later (server can be
busy).
Thank you!
Jeroen
-
Jeroen Ooms * Dept. of Methodology and Statistics
on file643c9869.dvi (1 page, 372 bytes).
Transcript written on file643c9869.log.
Error: Can't open display:
-
Jeroen Ooms * Dept. of Methodology and Statistics * Utrecht University
Visit http://www.jeroenooms.com www.jeroenooms.com to explore some of my
current projects.
--
View
keeping the
datatypes for every field?
-
Jeroen Ooms * Dept. of Methodology and Statistics * Utrecht University
Visit http://www.jeroenooms.com www.jeroenooms.com to explore some of my
current projects.
--
View this message in context:
http://www.nabble.com/Convert-dataframe-to-array
argument?
-
Jeroen Ooms * Dept. of Methodology and Statistics * Utrecht University
Visit http://www.jeroenooms.com www.jeroenooms.com to explore some of my
current projects.
--
View this message in context:
http://www.nabble.com/Anova-over-a-list-of-models-tp25311985p25311985
2009/9/5 Henrique Dallazuanna www...@gmail.com
Try this:
anova(myModels[[1]],myModels[[2]])
do.call(anova, myModels)
Does this work for you? Both functions are failing here:
anova(myModels[[1]],myModels[[2]])
Error in names(mods) - sapply(as.list(mCall)[c(FALSE, TRUE, modp)],
as.character)
by R-devel-2.9.1-1.el5.x86_64
What could be the problem?
-
Jeroen Ooms * Dept. of Methodology and Statistics * Utrecht University
Visit http://www.jeroenooms.com www.jeroenooms.com to explore some of my
current projects.
--
View this message in context:
http://www.nabble.com/Problem
!
-
Jeroen Ooms * Dept. of Methodology and Statistics * Utrecht University
Visit http://www.jeroenooms.com www.jeroenooms.com to explore some of my
current projects.
--
View this message in context:
http://www.nabble.com/popular-R-packages-tp22391260p22391260.html
Sent from the R
I agree with Thomas, over the years I have installed R on at least 5
computers.
I don't see why per-marchine statistics would not be useful. When you
installed a package on five machines, you probably use it a lot, and it is
more important to you than packages that you only installed once.
crosslevel interactions without a random slope for the lower level
variable. Now I'm confused. Is there a fundamental difference between a
crosslevel interaction, or is the same thing as a regular interaction when
the model also holds an error term for the lower level variable?
-
Jeroen Ooms * Dept
I am trying to install package Cairo on CentOS 5.2, but I keep getting this
error:
* Installing *source* package 'Cairo' ...
/usr/lib64/R/bin/INSTALL: ./configure: /bin/sh: bad interpreter: Permission
denied
ERROR: configuration failed for package 'Cairo'
** Removing '/usr/lib64/R/library/Cairo'
I use a CentOS 5.2 VPS to generate graphs through an R web-application. I
generate generate both pdf() and png() formats of the graphs. The pdf works
just fine and generates perfect pictures. However, the figures generated by
the png() (and also the jpg) device are messed up.
The weird thing is
);
thank you :)
Jeffrey Horner wrote:
Check that your data partitions have the 'exec' flag set in /etc/fstab,
particulary the /tmp partition:
http://www.centos.org/modules/newbb/viewtopic.php?topic_id=1687forum=31
Jeff
Jeroen Ooms wrote:
I am trying to install package Cairo on CentOS
Maybe this is more of a statistical question than an R question, but I am
going to ask it anyway :) Cortisol and Testosteron are known to interact in
the body, and some literature suggest that especially the ratio between the
two is a good predictor. So I want to add the ratio predictor
I would like to estimate a 95% highest density area for a multivariate
parameter space (In the context of anova). Unfortunately I have only
experience with univariate kernel density estimation, which is remarkebly
easier :)
Using Gibbs, i have sampled from a posterior distirbution of an Anova
thank you, both solutions are really helpful!
--
View this message in context:
http://www.nabble.com/plotting-density-for-truncated-distribution-tp20684995p20703469.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org
I am using density() to plot a density curves. However, one of my variables
is truncated at zero, but has most of its density around zero. I would like
to know how to plot this with the density function.
The problem is that if I do this the regular way density(), values near zero
automatically
I'm getting a unexpected compiling error when doing make:
gcc -std=gnu99 -I../../src/extra/zlib -I../../src/extra/bzip2
-I../../src/extra/pcre -I. -I../../src/include -I../../src/include
-I/usr/local/include -DHAVE_CONFIG_H -fpic -g -O2 -c platform.c -o
platform.o
platform.c: In function
I'm getting a unexpected compiling error when doing make:
gcc -std=gnu99 -I../../src/extra/zlib -I../../src/extra/bzip2
-I../../src/extra/pcre -I. -I../../src/include -I../../src/include
-I/usr/local/include -DHAVE_CONFIG_H -fpic -g -O2 -c platform.c -o
platform.o
platform.c: In function
Thomas Chu wrote:
Neither of those 3 lines of commands managed to drop x4 and its P value
magically decreased from 0.94 to almost 0! I am also baffled by how R
calculated those RSS.
Maybe it is using a different type of SS. If i have a lm() model, and i do:
Is it possible to fit a structural equation model with link functions in R? I
am trying to build a logistic-regression-like model in sem, because
incorporating the dichotomous variables linearly seems inappropriate. Mplus
can do something similar by specifying a 'link' parameter, but I would like
Werner Wernersen wrote:
I have done oo programming in C++ and Java before but the first few
tutorial on R oo were a bit confusing for me.
My personal experience is that the type of OO programming that makes for
example Java code nice and easy to structure is not possible in R. The
biggest
68 matches
Mail list logo