Displaying 20 results from an estimated 30000 matches similar to: "Re: [R] Creating a minimal package"
2004 Jun 24
2
Packages of snippets? (was: A way to list only variables or functions?)
From: Duncan Murdoch <dmurdoch@pair.com>
>I do understand the feeling of
>writing a nice little function, and not knowing exactly what to do
>with it: CRAN is crowded, and it does seem that an entire package
>just to support one or two simple functions is a bit of overkill.
>Can we work out a way to publish such things? Here's a
>proposal, with some serious flaws
2003 Oct 14
1
Web Site Suggestion Regarding R Source
In the Lua language they have put the entire source on the net in
such a way that you can easily browse it. Go to:
http://www.lua.org/source/5.0/
to see what I mean.
One of the nice things about R is that if you want more info on
a function than in the help page you can just type the name of
the function at the R prompt and you get its source, at least if
it itself was written in R.
2009 Jul 09
2
How to Populate List
Hi,
I'm new to R and would like to know, how one can populate the list with array data.
I'm reading a tab separated table in R. The data in the table looks something like this.
#Table Data
Comp A B C
Extracellular 103 268 535759
Nucleus 45603 47783 442744
#R code
myData <- read.table("table.data",
header=T,
2004 Jul 12
0
Where does R search when source() ?
I have found the use of save( ) and attach( ) when supported by a pair
of functions written by my colleague John Miyamoto, move( ) and rm.sv( )
quite useful in managing (1) collections of useful homebrew functions,
(2) project workspaces, and (3) "packages" under development. An .Rdata
file containing these and other handy functions together with a brief
supporting document can be
2004 Apr 20
1
Re: [R] Error message during debug (PR#6804)
On Tue, 20 Apr 2004 13:48:43 -0400 (EDT), "Gabor Grothendieck"
<ggrothendieck@myway.com> wrote :
>
>In R 1.9.0 on Windows XP Pro I get an error if I try to
>debug the identity function f shown:
>
> > f <- function(x)x
> > debug(f)
> > f(1)
> debugging in: f(1)
> Error in f(1) : Unimplemented feature in eval
> > R.version.string
> [1]
2004 Nov 18
5
Building Packages on Windows using .Rbuildignore (PR#7379)
On Thu, 18 Nov 2004 00:38:47 +0000 (UTC), Gabor Grothendieck
<ggrothendieck@myway.com> wrote :
>DIFFERENCE BETWEEN USING .RBUILDIGNORE AND NOT
>
>The reason that the processing is different according to whether one
>uses .Rbuildignore or not is that
> R CMD build
>takes the .Rbuildignore file into account but
> R CMD install
> R CMD check
> R CMD build
2008 Jan 14
1
rm: failed to get attributes of `/':
Recently I have heard reports like the one below a couple of times:
Tineke Casneuf wrote:
> However I did encouter an error when trying to install a self-made dummy
> package. I am sure it is not due to the package because it can be build on
> someone else's windows PC.
>
> The error message is *rm: failed to get attributes of `/': No such file or
> directory.
Today I
2006 Oct 25
1
Watch out for the latest Cygwin upgrade
I just updated my copy of Cygwin to the latest version, and now Windows
builds are failing on that machine. The only parts of the R toolset I
changed were the Cygwin dlls. I haven't tracked down exactly what the
problem is, and probably won't be able to do so for a few days.
So if you're a Windows user thinking about a Cygwin upgrade, be prepared
for problems...
Duncan Murdoch
2003 Nov 05
1
save(iris,file=
I tried it using file and it seems to work for saving:
> data(iris)
> con <- file("clipboard","w")
> save(iris,ascii=T,file=con)
> close(con)
> readLines("clipboard")
... lengthy output follows which seems correct ...
but not for loading:
> con <- file("clipboard","r")
> load(con)
Error in load(con) : loading from
2004 Mar 18
12
substitute question
Consider the following example:
# substitute a with b in the indicated function. Seems to work.
> z <- substitute( function()a+1, list(a=quote(b)) )
> z
function() b + 1
# z is an object of class call so use eval
# to turn it into an object of class expression; however,
# when z is evaluated, the variable a returns.
> eval(z)
function()a+1
Why did a suddenly reappear again
2004 Dec 24
6
Sorting problem
Hi
I'm using R 2.0 in SuSE 9.2.
When I plot data as a boxplot, the boxes appear on the plot in
alphabetical order (of group) rather than the order in which they appear
in the data. So far, the only thing I can do to fix this is to prefix
the group labels with a,b,c...etc to trick R into plotting them in the
right order.
Can sorting be turned off?
How should I address this sensibly?
Thanks
2004 Aug 28
6
model.matrix.default chokes on backquote (PR#7202)
Full_Name: Gabor Grothendieck
Version: R version 1.9.1, 2004-08-03
OS: Windows XP
Submission from: (NULL) (207.35.143.52)
The following gives an error:
> `a(b)` <- 1:4
> `c(d)` <- (1:4)^2
> lm(`a(b)` ~ `c(d)`)
Error in model.matrix.default(mt, mf, contrasts) :
model frame and formula mismatch in model.matrix()
To fix it replace this line in model.matrix.default:
2024 May 19
1
Supporting a DIY UPS with minimal effort but maximum gain
Hello all,
Now that I am subscribed to the list I can reply at last :)
Kelly, thank you for the comprehensive write-up and pointers to sources and
the Arduino lib and example. This took me into a rabbit hole and I've spent
entirely too many hours browsing through the NUT sources and
USB/HID/PowerDevice specs.
Jim, thanks for the comprehensive write-up and all the work you do on NUT.
This
2004 Aug 18
5
labeled break statements in R?
Hi,
Are there labeled break statements in R? i.e., something along the
lines of
TOPLOOP: for(i in 1:m) {
for(j in 1:n) {
...
if(condition) {
break TOPLOOP
}
}
}
Thanks,
Roger
2003 Dec 29
2
What version is sh?
I'm trying to write an automatic check of the toolset installation for
R. It'll get all the tools to print their version numbers, and
complain if they aren't acceptable ones.
However, I can't see how to get sh to print version information. Is
there some way to do it?
The sh I'm worried about is the one that comes with Cygwin, if there
isn't a standard approach.
Duncan
2003 Dec 25
1
problem with pipes (PR#5053)
I gather that the pipe problem is a difficult one to solve
since its highly desirable (at least for me) to be able to
use Windows pipes yet its been outstanding since the previous
R release.
I have one idea on a possible workaround and associated
feature and I wonder if this feature is feasible?
I just noticed that
z <- system("c:\\a.bat", intern = TRUE, invisible = TRUE)
is
2003 Dec 19
5
for loop over dataframe without indices
One can perform a for loop without indices over the columns
of a dataframe like this:
for( v in df ) ... some statements involving v ...
Is there some way to do this for rows other than using indices:
for( i in 1:nrow(df) ) ... some statements involving df[i,] ...
If the dataframe had only numeric entries I could transpose it
and then do it over columns but what about the general case?
2016 Apr 02
0
CentOS-announce Digest, Vol 134, Issue 2
Send CentOS-announce mailing list submissions to
centos-announce at centos.org
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.centos.org/mailman/listinfo/centos-announce
or, via email, send a message with subject or body 'help' to
centos-announce-request at centos.org
You can reach the person managing the list at
centos-announce-owner at centos.org
When
2024 May 18
1
Supporting a DIY UPS with minimal effort but maximum gain
Hello all,
I think there was a very good reply about an Arduino-based controller for
a DIY UPS here. The project you posted to, with an Arduino presenting as a
Megatec protocol server, also seems interesting.
Here I'd like to reply to one point not covered before - DMF. As a short
and quick reply - unfortunately no, you can not use it with stock upstream
NUT at the moment, and not for
2003 Dec 17
6
Factor names & levels
When I alter the levels of a factor, why does it alter the names too?
f <- factor(c(A="one",B="two",C="one",D="one",E="three"),
levels=c("one","two","three"))
names(f)
-- gives [1] "A" "B" "C" "D" "E"
levels(f) <-