# NOT RUN {
## logins as a given user to the Domino server
## and approves sending error reports to Domino.
domino.login("jglodek", "MySecretPassword", TRUE)
## creates new project.
domino.create("my-new-project")
## gets existing project from the server.
domino.get("jglodek/my-old-project")
## gets existing project from the server.
domino.get("my-old-project")
## initializes new domino project in current working directory with a given name.
domino.init("other-name")
## downloads run results from Domino server.
domino.download()
## uploads project files to Domino server.
domino.upload()
## runs main.r in the cloud with given arguments.
domino.run("main.r", "other", "console", "arguments")
## shows difference between current version and last uploaded version.
domino.diff()
## displays current run's status in the console.
domino.status()
## shows debug information
domino.debug()
## resets project defined in by current working directory
domino.reset()
## runs any of domino client command with given arguments
domino.runCommand("run my-file.r", successCallback, "failure message!")
# }
Run the code above in your browser using DataLab