From a resource object, find the corresponding resolver in the resolver registry and create a new resource client.

newResourceClient(x)

Arguments

x

The resource object which corresponding resolver is to be found.

Value

The corresponding ResourceClient object or NULL if none applies.

Examples

# \donttest{
library(resourcer)
res <- newResource(
  name = "CNSIM1",
  url = "file:///data/CNSIM1.sav",
  format = "spss"
)
client <- newResourceClient(res)
# }