Displaying 20 results from an estimated 1400 matches similar to: "Reading several tables from stdin"
2013 Apr 04
2
question about message
Hello R, could you tell me please, how to fix this issue?
There is installed RStudio-2.15.2 and the next steps where follow but
the message appears:
http://cran.r-project.org/web/packages/RMySQL/INSTALL):
>
> 1. Download the RMySQL_0.9.tar.gz file to the folder C:\Program
> Files\R\R-2.15.1\bin\x64
> 2. Open a Windows command line, and change directory to that folder
> 3.
2011 Nov 17
3
Named rows in a table (data frame) read from a file
I read a table as follows:
> F1 <- read.table("Rtext3.txt")
> F1
Price Floor Area Rooms Age Cent.heat
a 52.00 111 830 5 6.2 no
b 54.75 128 710 5 7.5 no
c 57.50 101 1000 5 4.2 no
d 57.50 131 690 6 8.8 no
e 59.75 93 900 5 1.9 yes
As it is seen, the rows have a name. However I don't know how to access a
2011 Nov 10
5
Named components in a list
I'm studying lists and I came to an example where
> L
$name
[1] "Fred"
$wife
[1] "Mary"
$no.children
[1] 4
$child.ages
[1] 4 7 9
then following the instructions to extend the list with a new component, I
executed:
> L[5] <-list(NewName="something")
and the new list I got was:
> L
$name
[1] "Fred"
$wife
[1] "Mary"
2014 Jun 19
1
isOpen() misbehaviour
Hello,
>From the doc, it says:
"isOpen returns a logical value, whether the connection is currently open."
But actually it seems to die on closed connections:
> con <- file()
> isOpen(con)
[1] TRUE
> close(con)
> isOpen(con)
Error in isOpen(con) : invalid connection
Is it expected ?
Tested on R-3.0.2 and R version 3.1.0 Patched (2014-06-11 r65921) on
linux x86_64
2009 Jul 21
1
Checking on closed file connections
Hi! I'm wondering if there's a smart way around this:
fileName= (some valid file on your system)
> fileCon=file(fileName, open="rt")
> l<-readLines (fileCon, n= 1)
>
> isOpen(fileCon)
[1] TRUE
> close(fileCon)
> isOpen(fileCon)
Error in isOpen(fileCon) : invalid connection
How do you test for a file being closed if isOpen gives you an error
2011 Apr 08
1
Invalid connection after closing?
Dear all,
I do not completely understand following behaviour :
> con <- file("test.txt")
> isOpen(con)
[1] FALSE
> open(con)
> isOpen(con)
[1] TRUE
> close(con)
> isOpen(con)
Error in isOpen(con) : invalid connection
> str(con)
Classes 'file', 'connection' atomic [1:1] 3
..- attr(*, "conn_id")=<externalptr>
Why do I get an
2009 May 21
3
file descriptor leak in getSrcLines in R 2.10.0 svn 48590
I noticed the following file descriptor leak when I couldn't remove
a package unless I shut down the R session that had loaded and
used it. The function that triggered the problem printed the output
of a call to parse(). Each time one prints a srcref a connection is
opened and not closed. It looks like it happens in
as.character.srcref's
call to getSrcLines, which has some logic I
2007 Nov 14
1
isOpen on closed connections
As far as I can tell, 'isOpen' cannot return FALSE in the case when 'rw = ""'.
If the connection has already been closed by 'close' or some other function,
then isOpen will produce an error. The problem is that when isOpen calls
'getConnection', the connection cannot be found and 'getConnection' produces an
error. The check to see if it is
2006 Oct 09
1
Discussion starter for package level Connection API
Thought I'd try and start a discussion. Feel free to jump in.
I guess R needs to strike the right balance between opening up the
internals to package writers and not allowing them to do bad things. My
first attempt at cracking this nut is to just memcpy() the Rconnection
and not allow access to the private stuff:
/* Alternative to allowing C code access to connection API. */
Rconnection
2000 Dec 20
0
showConnections() does not show closed (or non-opened) connections though help says so (PR#784)
help on showConnections explains parameter
all logical: if true all connections, including closed ones and the standard ones are displayed. If false only open user-created connections are included.
but
> # create a file
> cat("TITLE extra line", "2 3 5 7", "", "11 13 17", file="ex.data",
+ sep="\n")
>
2007 Nov 20
0
smb signing is incompatible with share level security !
These are some of the error messages found in the logs from smb:
Nov 20 16:09:32 dell01 smbd[5787]: Denied connection from (0.0.0.0)
Nov 20 16:09:32 dell01 smbd[5787]: [2007/11/20 16:09:32, 0]
lib/util_sock.c:get_peer_addr(1225)
Nov 20 16:09:32 dell01 smbd[5787]: getpeername failed. Error was El otro
extremo de la conexi?n no est? conectado
Nov 20 16:09:32 dell01 smbd[5787]: Connection
2000 Dec 20
1
showConnections() does not show closed (or non-opened) connections though help says so
help on showConnections explains parameter
all logical: if true all connections, including closed ones and the standard ones are displayed. If false only open user-created connections are included.
but
> # create a file
> cat("TITLE extra line", "2 3 5 7", "", "11 13 17", file="ex.data",
+ sep="\n")
>
2008 Mar 30
1
mcsi lida..2
mcsi lida..
http://megajavn.blogspot.com/
http://megajavn.blogspot.com/2008/03/dna.html
http://megajavn.blogspot.com/2008/03/structure-of-double-stranded-dna.h
tml
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to
2011 Nov 08
4
Intervals in function cut
When I was studying the function cut I found this example:
> x <- rep(0:8, tx0)
> x
[1] 0 0 0 0 0 0 0 0 0 1 1 1 1 2 2 2 2 2 2 3 3 3 3 3 4 4 4 5 5 5 5 5 5
5 5 5 5 6
[39] 6 6 6 6 7 7 7 8 8 8 8 8
> cut(x, b = 8)
[1] (-0.008,0.994] (-0.008,0.994] (-0.008,0.994] (-0.008,0.994]
(-0.008,0.994]
[6] (-0.008,0.994] (-0.008,0.994] (-0.008,0.994] (-0.008,0.994] (0.994,2]
[11] (0.994,2]
2017 Dec 14
0
cannot destroy connection (?) created by readLines in a tryCatch
On Thu, Dec 14, 2017 at 12:17 PM, G?bor Cs?rdi <csardi.gabor at gmail.com>
wrote:
> On Thu, Dec 14, 2017 at 7:56 PM, Gabriel Becker <gmbecker at ucdavis.edu>
> wrote:
> > Gabor,
> >
> > You can grab the connection and destroy it via getConnection and then a
> > standard close call.
>
> Yeah, that's often a possible workaround, but since this
2003 Aug 14
0
Problem joining NT 4 PDC
Hi!
I'm trying to use Winbind to authenticate users through a NT 4.0
Terminal Server (EINFANTIL) acting as the PDC of the domain
RED_EINFANTIL.
That's my smb.conf
[global]
winbind separator = +
winbind cache time = 10
template shell = /bin/bash
template homedir = /home/%U
winbind uid = 10000-20000
winbind gid = 10000-20000
2008 Mar 30
0
mcsi lida..5
mcsi lida..
http://megajavn.blogspot.com/
http://megajavn.blogspot.com/2008/03/dna.html
http://megajavn.blogspot.com/2008/03/structure-of-double-stranded-dna.h
tml
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to
2000 Dec 20
1
unlink() is not synchronized with existing connections (PR#783)
> # creating a file
> cat("sddfasdf", file="tempfile")
> showConnections()
class description mode text isopen can read can write
> con <- file("tempfile", "r")
> readLines(con)
[1] "sddfasdf"
Warning message:
incomplete final line in: readLines(con, n, ok)
> showConnections()
class description mode text isopen
2006 Mar 25
2
R gets slow
Hello, I have R as a socket server that computes R code sent by some
scripts (the clients). These scrips send R code to generate models
(SVM). The problem is that first models are generated in less than one
second and one hour later, the same models are generated in more than
ten seconds (even training with same data). If I restart the server ,
then it works well (fast). I don't know if I have
2018 Oct 31
1
PATCH: Asserting that 'connection' used has not changed + R_GetConnection2()
SUMMARY:
I'm proposing that R assert that 'connection' options have not changed
since first created such that R will produce the following error:
> fh <- file("a.txt", open = "w+")
> cat("hello\n", file = fh)
> close(fh)
> fh2 <- file("b.txt", open = "w+")
> cat("world\n", file = fh2)
>