Hi Ben, 

I maybe don’t fully get your question right (and I admin I do not know much about R), but I’d simply open the socket on the port I expect BaseX to be listening on and see whether or not I receive a `BaseX:123456789` response and close the connection immediately after.

Best
Michael 

Am 29.08.2019 um 15:03 schrieb Ben Engbers <Ben.Engbers@Be-Logical.nl>:

Hi,

Last year I have written a R-client for basex
(https://github.com/BaseXdb/basex/tree/master/basex-api/src/main/r/RbaseXClient.R).
The present version uses no exception handling and you have to include
the source-file in your R-code. A much cleaner solution would be catch
all the errors and to pack the sources in a package. At this moment, I
am working on such a R-package.

The first test that should be executed in the package, is to test if a
basexserver is available.

How can I test on Linux, Apple and Windows if a baseserver is running?

Ben