I am using the serial package in R to read a serial input to USB (COM3). When i try to open/read the connection:
library(serial)
con <- serialConnection(name="test_con", port="COM3", mode="4, n, 8, 1", ...)
open(con)
read.serialConnection(con)
I get the following error message:
Error: object 'binned_spikes' not found
Sometimes open(con) works but read.serialConnection() never does.
I have tried restarting my computer etc. and have tested the serial connection on Teraterm and the device definitely works and is in the right port. Ive also tried this for all 4 ports and always get the same error message in R.
Thanks if you can help!
Related
I'm trying to run a package in R that requires parallel processing (using xcms). I come across this error, which I am aware of other people experiencing (
Errors in makeCluster(multicore): cannot open the connection,
Error in parallel processing: port cannot be open,
Error in socketConnection(master, port = port, blocking = TRUE, open = "a+b", : cannot open the connection in Stan (from R) (the one most similar to mine that doesn't utilize a cluster/Linux and had no answer 7 years ago)
Error in socketConnection(port = port, server = TRUE, blocking = TRUE, : cannot open the connection
The only way I can get the code to run is through disabling parallel processing through
register(SerialParam())
I am using a Windows computer with 11 available cores. Any advice would be appreciated.
i scan the some ip with masscan and the output is empty and did not show any port open althogh i do the same scan with nmap and find open ports, can anyone help me to fix this problem with masscan?
and it show me this error:
FAIL: failed to detect router for interface: "ens33"
[hint] try something like "--router-mac 66-55-44-33-22-11"
EDIT: Despite having confirmed that this error is ISP-related. I still do not understand why system curl works fine. (error in curl (R) occurs in any site)
EDIT: Currently after a ISP visit. It works fine with cable, but wifi functioning is limited to a ISP router. Error persists with wifi with a personal router or the ISP modem.
Could it be something related to closed ports? (Which would be closed only in the problematic ISP)
I am getting a normal result in system console for:
curl -I https://www.gnu.org/
However the curl package in R gives: (error using the problematic ISP only)
con <- curl("https://gnu.org")
readLines(con)
# Error in readLines(con) :
# Timeout was reached: [gnu.org] Resolving timed out after 10000 milliseconds
The RCurl package works fine, but what I am trying to use requires curl (R)
Error in highlighted command
I installed docker toolbox to use splashr package in R and followed steps to install splash. But, I am getting an error saying "C:\Program Files\Docker Toolbox\docker.exe: Error response from daemon: driver failed programming external connectivity on endpoint"
Error which I am getting in R is --
"render_png(url = "https://analytics.usa.gov/", wait = 5)
Error in curl::curl_fetch_memory(url, handle = handle) :
Failed to connect to localhost port 8050: Connection refused"
Can anybody help me out on this please?
Currently following instructions from rblpapi-intro.Rmd (version date: 2015-08-13) I am wondering why:
library(Rblpapi)
blpConnect()
returns:
17FEB2016_14:27:17.296 7432:8884 ERROR
blpapi_platformtransporttcp.cpp:671 blpapi.session.transporttcp.{3}.
<localhost:8194> Connection failed
17FEB2016_14:27:17.296 7432:8884 WARN blpapi_platformcontroller.cpp:371
blpapi.session.platformcontroller.{3} Platform: 0 failed 1 consecutive
connect attempts, stopped trying to reconnect.
Error: Failed to start session.
given the below default values:
ip: 127.0.0.1
port: 8194
Factually, there is nothing wrong with those values as I've used them in Matlab using con=blp(port,ip2,time) and the connection succeeds perfectly.
EDIT:
The below function has finally worked! a bit weird, as I override the default ip value from blpConnect() by the same value.
blpConnect(host = getOption("blpHost", "127.0.0.1"),
port = getOption("blpPort", 8194L), default = TRUE)
Thus it looks like blpConnect() did'nt pointed to the default ip and port values for some reasons.