Set up a MarkLogic database for use with rfml.
The function installs REST extensions and modules needed to use the package againts a MarkLogic Server database. The function needs to be executed once for each database that is going to be used with rfml. It also creates a document, /rfml/rfmlInfo.json, that stores the version of the rfml package and the date the database are initiated.
ml.init.database(host = "localhost", port = "8000", adminuser = "admin", password = "admin")
The hostname or ip-adress of the MarkLogic http server. Default to localhost.
The port number of the MarkLogic http server. 8000 is used default
The username of a user that have rights to install options. admin is default.
The password admin is default.
The user that is used for the function need to have the rest-admin role, or at least the following privileges:
Nothing if success or raise a error.
1 2 3 4
## Not run: ml.init.database("localhost", "8000", "admin", "admin") ## End(Not run)
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.