Skip to content

Commit

Permalink
drop Robj from client obj
Browse files Browse the repository at this point in the history
  • Loading branch information
tmelliott committed Nov 27, 2024
1 parent b7b39af commit 75594cf
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/kind-otters-sit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"rserve-ts": patch
---

drop robj from client
3 changes: 1 addition & 2 deletions src/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import RserveClient from "./index";
import RserveClient, { Robj } from "./index";

// set global WebSocket
global.WebSocket = require("ws");
Expand All @@ -12,7 +12,6 @@ test("Rserve connects and runs", async () => {
const R = await RserveClient.create({
host: "http://127.0.0.1:8881",
});
const Robj = R.Robj;

expect(R.is_running()).toBe(true);

Expand Down
1 change: 0 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ const createRserve = async (
}
});
}),
Robj,
};
};

Expand Down
5 changes: 2 additions & 3 deletions src/playground.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import RserveClient from "./index";
import RserveClient, { Robj } from "./index";
import { ocapFuns } from "../tests/r_files/oc";
import * as RT from "./types";
import { z } from "zod";

// import { Presets, SingleBar } from "cli-progress";
Expand Down Expand Up @@ -102,7 +101,7 @@ const noOcap = async () => {
const i4 = await R.eval(
"structure(1L, some = 'thing')",
XT.integer({
some: R.Robj.character(1),
some: Robj.character(1),
})
);
console.log(i4);
Expand Down

0 comments on commit 75594cf

Please sign in to comment.