I found that I continued to have trouble establishing a connection (see #62 ) when starting from within a directory containing an existing R project. I found that after deleting the .RData file, I was able to connect successfully. So I went and reupgraded to R4. And the connection worked. So I don't think it was a problem with R4 but something in my environment (saved in the .RData file).
So I restored the .RData file and modified start-rserve in clojisr/v1/impl/rserve/proc.clj by adding the "--no-restore-data" parameter to the spawn call.
And the connection worked! Removing the "--no-restore-data" parameter caused it to fail again.
I'm not sure what was in my environment that caused the issue, but it may be nice to add in the "--no-restore-data" to the call to spawn rserve. Of course, maybe some people will want access to things in their previous environment, so some kind of option could be available.
I found that I continued to have trouble establishing a connection (see #62 ) when starting from within a directory containing an existing R project. I found that after deleting the .RData file, I was able to connect successfully. So I went and reupgraded to R4. And the connection worked. So I don't think it was a problem with R4 but something in my environment (saved in the .RData file).
So I restored the .RData file and modified
start-rserve
inclojisr/v1/impl/rserve/proc.clj
by adding the "--no-restore-data" parameter to thespawn
call.And the connection worked! Removing the "--no-restore-data" parameter caused it to fail again.
I'm not sure what was in my environment that caused the issue, but it may be nice to add in the "--no-restore-data" to the call to spawn
rserve
. Of course, maybe some people will want access to things in their previous environment, so some kind of option could be available.