You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
447 B
21 lines
447 B
window.onload = () => {
|
|
ocpu.seturl("http://localhost:5656/ocpu/library/base/R");
|
|
ar = [1, 2, 3, 4, 9, 2, 4, 5];
|
|
|
|
let req = ocpu.call("plot", {
|
|
x: ar,
|
|
type: "o",
|
|
col: "blue"
|
|
}, (o) => {
|
|
console.log(o);
|
|
console.log(o.getFileURL("output.html"));
|
|
console.log(o.getLoc());
|
|
//$("#rplot").attr("src", o.getFileURL("output.html"));
|
|
});
|
|
|
|
// if fail
|
|
req.fail(() => {
|
|
alert("R Error!");
|
|
});
|
|
}
|