From bf50157ad97565bba0945d2d81599a307e87d38b Mon Sep 17 00:00:00 2001 From: Tom Elliott Date: Tue, 21 Jan 2025 20:40:53 +1300 Subject: [PATCH] rm generated files --- tests/testthat/app.rserve.R | 31 ---------------------------- tests/testthat/sampler/.gitignore | 1 + tests/testthat/sampler/app.schema.ts | 21 ------------------- 3 files changed, 1 insertion(+), 52 deletions(-) delete mode 100644 tests/testthat/app.rserve.R delete mode 100644 tests/testthat/sampler/app.schema.ts diff --git a/tests/testthat/app.rserve.R b/tests/testthat/app.rserve.R deleted file mode 100644 index 3817154..0000000 --- a/tests/testthat/app.rserve.R +++ /dev/null @@ -1,31 +0,0 @@ -library(Rserve) -library(ts) - -library(ts) - -fn_mean <- ts_function(mean, x = ts_numeric(), result = ts_numeric(1)) -fn_first <- ts_function(function(x = ts_character()) x[1], - result = ts_character(1) -) - -sample_num <- ts_function( - sample, - x = ts_numeric(0), - size = ts_integer(1), - result = ts_numeric() -) -first.fns <- function() ts_app(list( - fn_first = fn_first, - fn_mean = fn_mean, - sample_num = sample_num -)) - -oc.init <- function() Rserve:::ocap(first.fns) - -Rserve::run.Rserve( - websockets.port = 6311, - websockets = TRUE, - oob = TRUE, - qap = FALSE, - websockets.qap.oc = TRUE -) diff --git a/tests/testthat/sampler/.gitignore b/tests/testthat/sampler/.gitignore index 3c3629e..c8f499a 100644 --- a/tests/testthat/sampler/.gitignore +++ b/tests/testthat/sampler/.gitignore @@ -1 +1,2 @@ node_modules +*.schema.ts diff --git a/tests/testthat/sampler/app.schema.ts b/tests/testthat/sampler/app.schema.ts deleted file mode 100644 index 7387d09..0000000 --- a/tests/testthat/sampler/app.schema.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { Robj } from "rserve-ts"; -import { z } from "zod"; - -const fn_first = Robj.ocap( - [z.union([z.string(), z.array(z.string())])], - Robj.character(1) -); -const fn_mean = Robj.ocap( - [z.union([z.number(), z.instanceof(Float64Array)])], - Robj.numeric(1) -); -const sample_num = Robj.ocap( - [z.instanceof(Float64Array), z.number()], - Robj.numeric() -); - -export default { - fn_first, - fn_mean, - sample_num, -};