Displaying 20 results from an estimated 64 matches for "showconnect".
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&quo...
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&quo...
2009 May 21
3
file descriptor leak in getSrcLines in R 2.10.0 svn 48590
...return(lines)
}
(It looks like the srcref stuff is not finished yet, as there are other
problems, like print(parse(file)) not showing what it used to.)
This is on Linux, compiled by me with an ancient version of gcc.
% R
R version 2.10.0 Under development (unstable) (2009-05-21 r48590)
...
> showConnections()
description class mode text isopen can read can write
> tf<-tempfile()
> cat(file=tf, "1:7\nlog(pi)\n")
> showConnections()
description class mode text isopen can read can write
> p<-parse(tf)
> showConnections()
description class mode text isopen...
2017 Dec 14
4
cannot destroy connection (?) created by readLines in a tryCatch
...>
> + )
>
> [1] NA
>
>> rm(list=ls(all.names = TRUE))
>
>> gc()
>
> used (Mb) gc trigger (Mb) max used (Mb)
>
> Ncells 257895 13.8 592000 31.7 416371 22.3
>
> Vcells 536411 4.1 8388608 64.0 1795667 13.7
>
>>
>
>> showConnections(all = TRUE)
>
> description
>
> 0 "stdin"
>
> 1 "stdout"
>
> 2 "stderr"
>
> 3
> "/var/folders/79/l_n_5qr152d2d9d9xs0591lh0000gn/T//RtmpZRcxmh/file128a13bffc77"
>
> class mode text isopen can read can wri...
2017 Dec 14
2
cannot destroy connection (?) created by readLines in a tryCatch
Consider this code. This is R 3.4.2, but based on a quick look at the
NEWS, this has not been fixed.
tryCatch(
readLines(tempfile(), warn = FALSE)[1],
error = function(e) NA,
warning = function(w) NA
)
rm(list=ls(all.names = TRUE))
gc()
showConnections(all = TRUE)
If you run it, you'll get a connection you cannot close(), i.e. the
last showConnections() call prints:
? showConnections(all = TRUE)
description
0 "stdin"
1 "stdout"
2 "stderr"
3 "/var/folders/59/0gkmw1yj2w7bf2dfc3jznv5w0000gn/T//Rtmpc7JqV...
2006 Nov 02
3
CRAN task views work only once per session (PR#9330)
Cran task views seems to be a "once-per-session" process -- the first
attempt to access views in a (RGui for Windows) session works, but
subsequent attempts fail. There is a noticeably long pause before
the failing call returns.
Example session with two calls to "available.views" follows, but similar
effects have been observed with two calls to "install.views" and
2017 Dec 15
1
cannot destroy connection (?) created by readLines in a tryCatch
...uiowa.edu> wrote:
> This has nothing to do with on.exit. It is an iteraction between where
> the warning is signaled in 'file' and your _exiting_ warning handler.
> This combination has the same issue,
>
> tryCatch(file(tempfile(), "r"), warning = identity)
> showConnections(all = TRUE)
>
> as does
>
> options(warn=2)
> file(tempfile(), "r")
> showConnections(all = TRUE)
>
> I haven't looked at the internals of 'file' but it looks like
> what it does is
>
> add an entry to connections table
> warn ab...
2017 Dec 14
0
cannot destroy connection (?) created by readLines in a tryCatch
...even when errors are caught.
tryCatch(readLines(tempfile(), warn=FALSE), error=function(x) NA)
[1] NA
*Warning message:*
*In file(con, "r") :*
* cannot open file
'/var/folders/79/l_n_5qr152d2d9d9xs0591lh0000gn/T//RtmpzIZ6Qh/file1ed2e57f2ea':
No such file or directory*
> showConnections(all=TRUE)
description class mode text isopen can read can write
0 "stdin" "terminal" "r" "text" "opened" "yes" "no"
1 "stdout" "terminal" "w" "text" "open...
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 isope...
2017 Dec 14
0
cannot destroy connection (?) created by readLines in a tryCatch
This has nothing to do with on.exit. It is an iteraction between where
the warning is signaled in 'file' and your _exiting_ warning handler.
This combination has the same issue,
tryCatch(file(tempfile(), "r"), warning = identity)
showConnections(all = TRUE)
as does
options(warn=2)
file(tempfile(), "r")
showConnections(all = TRUE)
I haven't looked at the internals of 'file' but it looks like
what it does is
add an entry to connections table
warn about non-existent file
realize it has to fail...
2017 Dec 14
0
cannot destroy connection (?) created by readLines in a tryCatch
...warn = FALSE)[1],
+ error = function(e) NA,
+ warning = function(w) NA
+ )
[1] NA
> rm(list=ls(all.names = TRUE))
> gc()
used (Mb) gc trigger (Mb) max used (Mb)
Ncells 257895 13.8 592000 31.7 416371 22.3
Vcells 536411 4.1 8388608 64.0 1795667 13.7
>
> showConnections(all = TRUE)
description
0 "stdin"
1 "stdout"
2 "stderr"
3
"/var/folders/79/l_n_5qr152d2d9d9xs0591lh0000gn/T//RtmpZRcxmh/file128a13bffc77"
class mode text isopen can read can write
0 "terminal" "r" "text&qu...
2007 Apr 06
1
Authentication problems using libsmbclient API and DFS shares
...: \> ls
?
.??????????
D??????? 0? Thu Mar 29 12:52:3
2007
? ..?????????
D??????? 0? Thu Mar 29 12:52:35
2007
? Link1??????
D??????? 0? Thu Mar 29 12:46:43
2007
? Link2??????
D??????? 0? Thu Mar 29 12:52:35
2007
???????????????
65389 blocks of size 65536. 36670 blocks available
smb: \>
showconnect
//Fileserv-1/DFSRoot
smb: \> cd Link1
smb: \Link1\> ls
?
.??????????
D??????? 0? Thu Mar 29 12:43:19
2007
? ..?????????
D??????? 0? Thu Mar 29 12:43:19
2007
?
? List.xls???
A??? 25088? Sat Jan? 7 23:03:18 2006
.
.
.
smb: \Link1\> showconnect
//Fileserv-1/FileShare1...
2002 Oct 04
1
Getting rid of extra connections?
I'm trying to figure out how to get out of this situation:
> source('monit.r')
Error in file(file, "r") : All connections are in use
> showConnections()
description class mode text isopen can read can write
> help.search('connection')
Error in file(file, "r") : All connections are in use
> q()
Save workspace image? [y/n/c]: y
Error in file(file, "wb") : All connections are in use
As best as I can t...
2006 May 26
2
Too many open files
This may be more of an OS question ...
I have this call
r = get.hist.quote(symbol, start= format(start, "%Y-%m-%d"), end=
format(end, "%Y-%m-%d"))
which does a url request
in a loop and my program runs out of file handlers after few hundred
rotations. The error message is: 'Too many open files'. Other than
increasing the file handlers assigned to my process, is there
2005 Feb 01
2
assign connections automatically
...stz.txt")
> inConnect <- function(){
+ fn <- dir(pattern="*.txt") # grab only *.txt files
+ fn2 <- gsub('.txt', "", fn) # removes the '.txt' from each string
+ for(i in 1:length(fn))
+ assign((fn2[[i]]),file(fn[i], open="r"))
+ }
> showConnections() #currently, no connections
description class mode text isopen can read can write
> inConnect() # run function
> showConnections() #the connections are now there
description class mode text isopen can read can write
3 "testx.txt" "file" "r" &...
2007 Dec 27
0
Too many open files
...exact same issue
; I have executed get.hist.quote() in a loop and now R not only refuses to
establish any further connections to yahoo, but, worse, it will not open any
files either. For example, I cannot even save my current workspace for that
reason.
I tried
closeAllConnections()
As well as
showConnections()
But I do not see any open connections.
Also, does get.hist.quote() not close its connection internally once it is
done ?
Any help would be immensely useful as I am quite stuck.
Thanks!
Markus
Re: [R] Too many open files
* This message: [ Message body ] [ More options ]
* Related...
2000 Dec 20
1
unlink() is not synchronized with existing connections
> # 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 isope...
2000 Dec 20
0
unlink() is not synchronized with existing connections (PR#785)
On Wed, 20 Dec 2000 joehl@web.de wrote:
> > # 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()
>...
2013 Jun 19
2
Ryacas loads but yacas has an error
...l.
Now this morning, I keep getting the following:
> a <- Sym("a")
> a
Error in summary.connection(x) : invalid connection
>
When I go to yacas from the command line, it works fine.
Any suggestions, please?
I'm thinking that a port might be open, but here I have:
> showConnections()
description class mode text isopen can read can write
>
I'm working with R-3.0.1 on Windows 7.
Thanks,
Erin
--
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: erinm.hodgess@gmail.com
[[alternative HTM...
2007 Sep 19
0
Authentication problems using libsmbclient to traverse DFS links
...ws Server 2003 3790]
Server=[Windows Server 2003 5.2]
smb: \> ls
.
D 0 Thu Mar 29 12:52:35
2007
..
D 0 Thu Mar 29 12:52:35
2007
Link1
D 0 Thu Mar 29 12:46:43
2007
Link2
D 0 Thu Mar 29 12:52:35
2007
65389 blocks of size 65536. 36670 blocks available
smb: \> showconnect
//Fileserv-1/DFSRoot
smb: \>
cd Link1
smb: \Link1\> ls
.
D 0 Thu Mar 29 12:43:19
2007
..
D 0 Thu Mar 29 12:43:19
2007
List.xls A 25088 Sat
Jan 7 23:03:18 2006
.
.
.
smb: \Link1\> showconnect
//Fileserv-1/FileShare1
smb:
\Link1\> cd ../Link2
smb: \...