Displaying 20 results from an estimated 10000 matches similar to: "automatic "paste" filter to paste only the commands from a transcript on the clipboard"
2003 Oct 23
3
what's going on here with substitute() ?
I was trying to create a function with a value computed at creation time,
using substitute(), but I got results I don't understand:
> this.is.R
Error: Object "this.is.R" not found
> substitute(this.is.R <- function() X,
list(X=!is.null(options("CRAN")[[1]])))
this.is.R <- function() TRUE
> # the above expression as printed is what I want for the
2004 Mar 07
0
automatic "paste" filter to paste only the commands
Back in January, Tony Plate wrote this:
> >Just for fun (and actually because I would use it too) I wrote a
> >version of the "paste" menu command that assumes the clipboard
> >contains a transcript, and just pastes the commands from it into
> >the R console window (Windows GUI only).
> >
> >So, if something like this:
> >
> > > foo
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
2013 Feb 12
1
Write a dataframe or table to clipboard as an image to paste into an email
Hi,
Is there a way to write a dataframe or table to the clipboard as an image? I want to paste into an email. I use snagit or print screen to do this today but want to know if there is a way to do this through R.
For example I know how to write to clipboard for copy and pasting into Excel:
> write.table(df,"clipboard",sep="\t"
But what's the equivalent for .png or
2003 Oct 21
5
do.call() and aperm()
Hi everyone
I've been playing with do.call() but I'm having problems understanding it.
I have a list of "n" elements, each one of which is "d" dimensional
[actually an n-by-n-by ... by-n array]. Neither n nor d is known in
advance. I want to bind the elements together in a higher-dimensional
array.
Toy example follows with d=n=3.
f <-
2002 Oct 10
2
tapply for matrices
Does anyone have something like tapply that is extremely fast for matrices when there is a very large number of levels of the grouping variable?
I'm referring to, for example,
tapply(x, grouping.variable, function.operating.on.submatrix)
where x is a matrix and the submatrix is a subset of the rows of x. The grouping variable's length equals the number of rows of x.
--
Frank E
2005 May 28
1
(PR#7899) seek(con, 0, "end", rw="r") does not always work
Tony Plate wrote:
> ligges@statistik.uni-dortmund.de wrote:
>
>> tplate@blackmesacapital.com wrote:
>>
>>
>>> I've noticed that seek(con, 0, "end", rw="r") on a file connection
>>> does not always work correctly after a write (R 2.1.0 on Windows).
>>>
>>> [Is a call to fflush() needed inside file_seek() in
2006 May 04
1
a clipboard problem while using R2HTML
I followed the examples of previous posts about R2HTML to practice
exporting a data to a clipboard, but the result is not as smooth as I
had expected:
library(R2HTML)
data(iris)
HTML(iris, file("clipboard","w"), append=FALSE)
I got an error message:
> HTML(iris, file("clipboard","w"), append=FALSE)
Error in file("clipboard", "w")
2005 Jun 09
1
single assignment affecting multiple sub-structures (PR#7924)
I'm trying to create a language structure that is a call to a function
with a number of arguments that is only known at run time. I do this by
using repeated indices to expand out a call with a single argument.
However, when I change one of the arguments, all are changed.
I don't see the same behavior when I initially create a call with
multiple arguments.
Even more strangely,
2004 Sep 24
1
algorithm reference for sample() - Knuth
Thank you for the reference to Knuth. Indeed in vol. 2 he has a
> -----Original Message-----
> From: Tony Plate [mailto:tplate@blackmesacapital.com]
> Sent: Friday, September 24, 2004 8:05 AM
> To: Vadim Ogranovich
> Subject: Re: [Rd] algorithm reference for sample()
>
> Have you tried looking in Knuth's books on computer
> algorithms? (They are classics for good
2001 Dec 04
2
Agent Clipboard issues revisited
Howdy,
It seems that there's a bit of a problem with Agent accessing the KDE
Clipboard through Wine. (Or is it the X Clipboard?)
If I start a managed wine Agent session and try to copy from Agent,
the copied info shows up in the KDE Clipboard. If I try to paste
highlighted text from the console into Agent, it works also. Once.
The second (and subsequent tries) don't work. It
2004 Jun 07
2
strange apparently data-dependent crash with large data (PR#6955)
I'm consistently seeing R crash with a particular large data set. What's
strange is that although the crash seems related to running out of memory,
I'm unable to construct a pseudo-random data set of the same size that also
causes the crash. Further adding to the strangeness is that the crash only
happens if the dataset goes through a save()/load() cycle -- without that,
the
2019 May 23
2
writing Unicode text to the Windows clipboard
Hello,
I'm interested in moving text from and to the clipboard that cannot
necessarily be represented in the native encoding. So, really, this is
about Windows.
I can successfully read from the clipboard by specifying the format that
corresponds to unicode text.
From R >=2.7.0, it seems you should also be able to write unicode text
to the Windows clipboard.
2005 May 19
1
problems with truncate() with files > 2Gb under Windows (possibly (PR#7879)
This message relates to handling files > 2Gb under Windows. (I use 2Gb
as shorthand for 2^31-1 -- the largest integer representable in a signed
32 bit integer.)
First issue: truncate() is not able to successfully truncate files at a
position > 2Gb. This appears to be due to the use of the Windows
function chsize() in file_truncate() in main/connections.c (chsize()
takes a long int
2002 Nov 26
2
clipboard with R
Hi,
how can we copy numeric and/or text data to
the clipboard ? (under windows2000)
It works fine with graphics and I need to do it with text data .
thanks,
regards
Vincent Demolombe
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or
2003 Sep 17
1
Just don't do it, surely? (was RE: Retrieve ... argument values)
Tony, I don't understand what you mean. Could you give
an example?
> -----Original Message-----
> From: Tony Plate [mailto:tplate at blackmesacapital.com]
> > ... I'm not saying "never write functions that use ...",
> >I'm just saying "never write functions that depend on a particular
> >argument being passed via ...".
>
> Several
2003 Nov 05
1
save(iris,file="clipboard",ascii=TRUE)
Is this a bug? I thought that "clipboard" could always be substituted
for a filename when dealing with ASCII files.
> data(iris)
> save(iris,ascii=TRUE,file="clipboard")
Error in file(file, "wb") : `mode' for the clipboard must be `r' or `w'
Also this (where gclip is a utility found at unxutils.sourceforge.net
that copies its standard input to the
2009 Sep 18
1
Reading clipboard with read.delim("clipboard") crash (PR#13957)
Full_Name: Liam Gretton
Version: 2.9.2
OS: openSUSE 11.1 (x86_64)
Submission from: (NULL) (143.210.13.77)
Reading a large number of rows of delimited data via the clipboard results in a
segfault or double free error. I've tested copying from various applications,
but gedit will do.
This problem exists in the openSUSE-supplied 2.8.1, I've just built 2.9.2 to see
if it's still there,
2003 Nov 08
5
accessing windows clipboard from load and save (PR#4999)
Full_Name: Gabor Grothendieck
Version: 1.7.1
OS: Windows 2000
Submission from: (NULL) (207.35.143.81)
save(x,ascii=TRUE,file("clipboard"))
works but
load(file("clipboard"))
does not.
Even better would be if
save(x,ascii=TRUE,"clipboard")
and
load("clipboard")
worked as that would provide consistency with
2001 Feb 14
3
Clipboard X->win
Is there a way to copy selected text from the X11 Clipboard to
Wine? The other way (wine -> x) works fine.
Tsch??,
Wolfgang
--
Wolfgang Becker *** eMail uafr@gmx.de
http://www.uni-karlsruhe.de/~Wolfgang.Becker/