Displaying 20 results from an estimated 2000 matches similar to: "Socks under R"
2002 Sep 23
1
socket bug ??? (PR#2056)
Please help me,
I use R-1.4.1 and everything works fine. But with R-1.5.1 ist does'nt work:
I have this put into a file called "socket.R"
while(TRUE){
con1 <- socketConnection(host="localhost",port=6021,server=TRUE);
source(con1);
close(con1);
}
So I can use R with:
source("socket.R")
and R answers me when I send a command to it via socket 6021. But in
2001 Jul 30
0
Remote controlling R via sockets
Many thanks to the R core team for their work on R connections. I was delighted to discover that it is now possible to remote-control R-1.3.0 via a socket connection - something which Brian Ripley noted was not yet possible with R-1.2.0 back in January 2001 in the first R News newsletter. How? Just substitute source() for readLines() in last few lines of the example for a socket connection given
2016 Apr 18
2
lists and rownames
I'm doing some string manipulation on a vector of file names, and noticed
something curious. When I strsplit the vector, I get a list of
character vectors.
The list is numbered, as lists are. When I cast that list as a data
frame with 'as.data.frame()', the resulting columns have names derived
from the original filenames.
Example code is below. My question is, where are these names
2002 Jan 26
1
Trouble with contrasts
Greetings,
I have a nagging problem with contrasts and I can't seem to resolve it.
A factor exists with four levels (lib1, lib2, con1, con2) and when I
check the contrasts or set the contrasts to any of the prespecified
ones, I do not get the exact contrasts necessary to test the
theoretically relevant ones. I need orthogonal contrasts that look just
like this matrix:
con1 con2
2008 Jan 08
1
Problems with modifying data in a MySQL database
Using the package /RMySQL/ I have established a connection ('con1') to a MySQL-Database called 'mc'.
This database contains a table called 'mc_2000' which has 200000 observations on several
variables. One of these variables is called 'B5' (type 'double').
When I generate a numeric vector in R called 'B6' that has the same length as 'B5': How
2007 May 28
1
command demands double quotes
I have an application called dynaterm which I can run successfully under
wine but to achieve 110% success I need to pass this application a parameter
which must contain double quotes
E.G. C:/Program Files/dynaterm8/dynaterm.exe -connect:"con1"
So I've tried escaping the quotes and setting the launcher command to
wine "C:/Program Files/dynaterm8/dynaterm.exe
2012 Dec 19
1
problem with opening more than one SOCK cluster with package snow
Dear list,
i have some problems using the snow package to create a SOCK cluster.
The errors just occour irregularly but it seems to me that they occour
when I try to create more than one cluster on the same machine via
different R instances started via submitting LSF jobs to a cluster. Does
anyone have an idea how to solve this or where to start digging for
solutions?
The error messages
2010 Nov 07
1
using variable in rmysql query
Dear All,
I am using this query it returns id :
id <- dbGetQuery(con1,"SELECT id FROM tenants WHERE name LIKE '%consim%'")
But In my case the string "consim" is there in another variable(it is
coming from configuration file);
> str <- "consim"
I am trying to replace the string some this like, but it not working:
> id <-
2018 Mar 09
2
parallel:::newPSOCKnode(): background worker fails immediately if socket on master is not set up in time (BUG?)
BACKGROUND:
While troubleshooting random, occasionally occurring, errors from
parallel::makePSOCKcluster("localhost", port = 11000);
Error in socketConnection("localhost", port = port, server = TRUE,
blocking = TRUE, :
cannot open the connection
I had another look at parallel:::newPSOCKnode(), which is used
internally to set up each background worker. It is designed to,
2018 Mar 09
2
parallel:::newPSOCKnode(): background worker fails immediately if socket on master is not set up in time (BUG?)
A solution is to have parallel:::.slaveRSOCK() attempt to connect
multiple times before failing, e.g.
makeSOCKmaster <- function(master, port, timeout, useXDR, maxTries
= 10L, interval = 1.0) {
port <- as.integer(port)
for (i in seq_len(maxTries)) {
con <- tryCatch({
socketConnection(master, port = port, blocking = TRUE,
2018 Mar 10
1
parallel:::newPSOCKnode(): background worker fails immediately if socket on master is not set up in time (BUG?)
Great.
For the record of this thread, I've submitted patch PR17391
(https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=17391). I've
patched it against the latest R-devel on the SVN, passes 'make
check-all', and I've verified it works with the above tests.
/Henrik
On Fri, Mar 9, 2018 at 4:37 AM, <luke-tierney at uiowa.edu> wrote:
> I'm happy to look at a
2003 Feb 07
1
Bug in socketConnection (PR#2535)
Platform: Windows
Version: 1.6.2
When first called, socketConnection gives an error. On subsequent calls it
performs correctly. Thus the first call has the effect of "priming" the
connection. Eg
> socketConnection(port=50)
Error in socketConnection(port = 50) : unable to open connection In
addition: Warning message:
localhost:50 cannot be opened
> MIM <-
SUGGESTION: Proposal to mitigate problem with stray processes left behind by parallel::makeCluster()
2019 Mar 18
2
SUGGESTION: Proposal to mitigate problem with stray processes left behind by parallel::makeCluster()
(Bcc: CRAN)
This is a proposal helping CRAN and alike as well as individual
developers to avoid stray R processes being left behind that might be
produced when an example or a package test fails to set up a
parallel::makeCluster().
ISSUE
If a package test sets up a PSOCK cluster and then the master process
dies for one reason or the other, the PSOCK worker processes will
remain running for 30
2009 Jan 28
3
initial value in 'vmmin' is not finite
Dear r helpers
I run the following code for nested logit and got a message that
Error in optim(c(0, 0, 0, 0, 0.1, -2, -0.2), fr, hessian = TRUE, method = "BFGS") : initial value in 'vmmin' is not finite
What does this mean? and how can I correct it?
Thank you
June
> yogurt = read.table("yogurtnp.csv", header=F,sep=",")> attach(yogurt)>
2009 Mar 02
1
initial gradient and vmmin not finite
Dear Rhelpers
I have the problem with initial values, could you please tell me how to solve it?
Thank you
June
> p = summary(maxLik(fr,start=c(0,0,0,1,0,-25,-0.2)))
Error in maxRoutine(fn = logLik, grad = grad, hess = hess, start = start, :
NA in the initial gradient
> p = summary(maxLik(fr,start=c(0,0,0,1,0,-25,-0.2),method="BFGS"))
Error in optim(start, func, gr =
2013 Jun 10
1
Sending Email with Attachment
Hi,
I am trying to send an email through gmail or outlook from my Windows PC and
finding trouble to send the email.
The code which I am using is given below:
Code :
library("sendmailR")
from <- "abcd@outlook.com"
to <- <mailto:efgh@gmail.com> efgh@gmail.com
subject <- "Run at"
mailControl = list(smtpServer="blu-m.hotmail.com")
2013 Oct 03
1
Problem with makePSOCKcluster R3.0.1
Hello,
I am using function makePSOCKcluster to make parallel computation on 3 EC2
Amazon machines.
I have a passwordless between machines and ssh is correct.
In the R 2.15.1 release this function works correctly.
Installing R 3.0.1 on my EC2 machines makePSOCKcluster does not produce the
cluster.
If I run the function with outfile="" option, I obtain this message
Error in
2008 May 08
1
problem with caretNWS on linux
Hi,
I am using caretNWS on a RHEL x86_64 system and I am getting an error
message that is nearly identical to the one occuring in
http://www.r-project.org/nosvn/R.check/r-release-macosx-ix86/caretNWS-00check.txt
Error in socketConnection(serverHost, port = port, open = "a+b", blocking =
TRUE) :
unable to open connection
Calls: system.time ... .local -> tryCatch -> tryCatchList
2005 Oct 26
1
install.packages under SuSE 10 behind proxy, R 2.2.0 from source
Hi
I installed R 2.2.0 from source and want to use install.packages but it
doesn't work.
http_proxy is set to http://proxy.sun.ac.za:3128
but it still can't connect to the repository.
The mirror is available, I can connect to it via the internet.
Any help welcome,
Rainer
--
NEW TELEPHONE NUMBER
Tel: +27 - (0)72 808 2975 (w)
Rainer M. Krug, Dipl. Phys. (Germany), MSc
2006 Sep 22
1
Update to Dillo browser question
Hi
I asked about if there is any way of opening URLs from the help browser
in the same window of the same dillo browser - here is the answer.
Just to reiterate: dillo is for me the perfect browser for the help of R
when you use ?...
Rainer
-------- Original Message --------
Subject: Re: [Dillo-dev] Opening new URL in same instance and -s option
Date: Thu, 21 Sep 2006 21:31:57 -0400
From: