similar to: Fwd: source('clipboard')

Displaying 20 results from an estimated 20000 matches similar to: "Fwd: source('clipboard')"

2013 Feb 17
1
tidy.source() gets confused when # is not a comment but a part of a literal string?
I needed to clean someone else code and run it through tidy.source. It encountered a number of hangups which after some experimentation lead me to suspect that the culprit is # symbol when it is a part of literal string. For example if i copy the following to the clipboard confuse.tidy <-    function() {   txt <- 'abra # cadabra' } and run with default arguments >tidy.source()
2008 Jan 16
3
Rprofile.site not executed?
It seems that my Rprofile.site file is not executed when I start R. To test this I included the following code in that file: .First <- function(){ cat("\nWelcome at", date(), "\n") flush.console() } When I start R the message above is not displayed. I am running R 2.6.1 (rgui.exe) under Vista Home Premium. The Rprofile.site is in the etc folder and the R_PROFILE
2006 Feb 02
5
Fwd: win32-clipboard and Unicode zero bytes
Hi all, I''m forwarding this message from Brian Marick. If you run this test script and then paste the results into a Unicode aware text editor, you''ll notice that it only prints one character instead of three. I tried changing the strlen to _tcslen and strcpy to _tcscpy, but that didn''t help. I mucked around a bit with the MultiByteToWideChar function, too, but
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")
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
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,
2005 Apr 27
3
Time series indexes
I tried to assign values to specific elements of a time series and got in trouble. The code below should be almost self-explanatory. I wanted to assign 0 to the first element of x, but instead I assigned zero to the second element of x, which is not what I wanted. Is there a function that will allow me to do this without going into index arithmetic (which would be prone to errors)? FS >
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
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.
2006 Oct 29
2
write to clipboard under Linux
Dear all, I am trying to use the clipboard when writing a table. Typing: write.table(object, file="clipboard") leads to the message: Fehler in file(file, ifelse(append, "a", "w")) : 'mode' f?r die Zwischenablage muss unter Unix 'r' sein My interpretation is that I am not allowed to write into the clipboard from a program called from R. Is there a
2009 Apr 28
2
problems with clipboard
Hi I'm a mac user. I have problems loading data from mac excel in R. I'm using these script: >library(utils) >data2 <- read.table(file("clipboard"), header =T, sep ="\t") ____but this is the message that I have from R_____ Error in open.connection(file, "r") : cannot open the connection In addition: Warning message: In open.connection(file,
2012 Jan 11
1
parse( connection) and source-keeping
In R <= 2.13.x, calling 'parse( con)' where 'con' is a connection, 'options( keep.source)' is TRUE, and default 'srcfile' would preserve the source. In R >= 2.14.1, it doesn't. > tf <- tempfile() > options( keep.source=TRUE) > texto <- c( 'function() { # comment', '}') > parse( text=texto) expression(function() { #
2006 Aug 26
2
Importing data from clipboard on Mac OSX
Dear R users, I am trying to get data from the clipboard into R on MacOSX. I tried the following, but got an error message: read.delim("clipboard") Error in file(file, "r") : unable to open connection In addition: Warning message: unable to contact X11 display Obviously, I'm not running R using X11. I'm wondering, can I import data from the clipboard on MacosX?
2009 Apr 17
2
win32-clipboard issues and support for additional formats
Hi, Currently the GetClipboardData() function is declared in windows-pr so that it returns a pointer. I guess my reasoning was that I was only worried about dealing with text at the time, so it was the easiest thing to do. But, I''d like to support more formats beyond text, i.e. images. However, this can cause a segfault. If you copy a jpeg image to the clipboard first, for example, and
2006 Aug 03
1
[ win32utils-Bugs-5287 ] v 0.4.1 - Clipboard.set_data causes Segmentation fault
Bugs item #5287, was opened at 2006-08-03 11:34 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=411&aid=5287&group_id=85 Category: win32-clipboard Group: Code Status: Open Resolution: None Priority: 3 Submitted By: Nobody (None) Assigned to: Nobody (None) Summary: v 0.4.1 - Clipboard.set_data causes Segmentation fault Initial Comment: Whenever
2007 Mar 19
1
Windows Clipboard and WINE
I have a book cataloging program that I have used for several years and I am extremely pleased with it. It's one of the main reasons I still use windows primarily. I'm looking at running it under WINE and I am having trouble with the registration of the license key. The license key is coped to the Windows clipboard and the the program reads it from the clipboard. When I try to
2006 May 20
3
sapply and Date objects
This is probably a dumb question, but I cannot figure it out. Why does this happen? dt <- as.Date("1954-02-01") > as.character(dt) [1] "1954-02-01" > sapply(c(dt), as.character) [1] "-5813" Thanks. FS
2000 Mar 23
1
clipboard
Hi, if we do something like that for windows (which might be useful) we should do the same for X, i.e., use the X clipboard in the same way. Not that I know how to access it but it shouldn't be too hard to find out. Both would probably come down to having something like read.table(text=foo, ...) along with foo <- getClipboard(...) reading a text string from the X or Windows
2000 Mar 23
4
Requery: R 1.0.0 for Win95 and clipboard
Noone answered so I guess this is not possible, but can anyone definitely put me out of my misery... 'I have just begun using R 1.0.0 for Win95. Can someone please tell me how to put a data frame on the clipboard, and how to read data into a data frame from the clipboard.' Is this something that's planned? The clipboard seems pretty fundamental to Windows (and other OS?). Thanks