The function uploadNewNCP
is really a remote version
of saveNewNCP()
, invoking that function on an opencpu server.
This is typically done for the two NCPs participating in a
computation with the list of sites. Note that sites are always
a list of at least a unique name element (distinguishing the
site from others) and a url element.
uploadNewNCP(defn, comp_defn, url = NULL, worker = NULL, sites)
TRUE if everything goes well
a definition for the NCP
the computation definition
the url for the NCP. Only one of url and worker can be non-null
the worker for the NCP if local. Only one of url and worker can be non-null
a list of lists, each containing two items, a unique
name
and a (not necessarily unique) url
. This is the data
for the NCP!
saveNewNCP()