From b3e8718d4d1f65c7f54cff3ed8ef9465df83a366 Mon Sep 17 00:00:00 2001 From: tmelliott Date: Fri, 7 Feb 2025 00:21:32 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20tmelliot?= =?UTF-8?q?t/ts@96097fa692fd971c826896a17ced9e691820a942=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 404.html | 3 +- LICENSE-text.html | 3 +- LICENSE.html | 3 +- articles/index.html | 3 +- articles/simple-react-app.html | 3 +- authors.html | 7 ++-- index.html | 3 +- news/index.html | 60 ++++++++++++++++++++++++++++++++++ pkgdown.yml | 2 +- reference/index.html | 3 +- reference/ts_app.html | 3 +- reference/ts_character.html | 3 +- reference/ts_compile.html | 3 +- reference/ts_dataframe.html | 3 +- reference/ts_deploy.html | 3 +- reference/ts_factor.html | 3 +- reference/ts_function.html | 3 +- reference/ts_integer.html | 3 +- reference/ts_list.html | 3 +- reference/ts_logical.html | 3 +- reference/ts_null.html | 3 +- reference/ts_numeric.html | 3 +- reference/ts_object.html | 3 +- reference/ts_union.html | 3 +- reference/ts_void.html | 3 +- reference/type_objects.html | 3 +- search.json | 2 +- sitemap.xml | 1 + 28 files changed, 113 insertions(+), 28 deletions(-) create mode 100644 news/index.html diff --git a/404.html b/404.html index 0151a11..64e305c 100644 --- a/404.html +++ b/404.html @@ -20,7 +20,7 @@ ts - 0.0.0.9000 + 0.1.0 + diff --git a/LICENSE.html b/LICENSE.html index 3b317cb..166a1e8 100644 --- a/LICENSE.html +++ b/LICENSE.html @@ -7,7 +7,7 @@ ts - 0.0.0.9000 + 0.1.0 + diff --git a/articles/index.html b/articles/index.html index 1a4d5a7..2cd987e 100644 --- a/articles/index.html +++ b/articles/index.html @@ -7,7 +7,7 @@ ts - 0.0.0.9000 + 0.1.0 + diff --git a/articles/simple-react-app.html b/articles/simple-react-app.html index a6bf977..815bc95 100644 --- a/articles/simple-react-app.html +++ b/articles/simple-react-app.html @@ -20,7 +20,7 @@ ts - 0.0.0.9000 + 0.1.0 + @@ -48,13 +49,13 @@

Elliott T (2025). ts: Helper functions for writing type safe functions for rserve-ts. -R package version 0.0.0.9000, http://tomelliott.co.nz/ts/. +R package version 0.1.0, http://tomelliott.co.nz/ts/.

@Manual{,
   title = {ts: Helper functions for writing type safe functions for rserve-ts},
   author = {Tom Elliott},
   year = {2025},
-  note = {R package version 0.0.0.9000},
+  note = {R package version 0.1.0},
   url = {http://tomelliott.co.nz/ts/},
 }
diff --git a/index.html b/index.html index 1334435..b29cae5 100644 --- a/index.html +++ b/index.html @@ -22,7 +22,7 @@ ts - 0.0.0.9000 + 0.1.0 + + + + + +
+
+
+ +
+

ts 0.1.0 - Initial release

+

The initial developmental release of ts.

+
+
+ + +
+ + + +
+ + + + + + + diff --git a/pkgdown.yml b/pkgdown.yml index ac59935..17dbe8c 100644 --- a/pkgdown.yml +++ b/pkgdown.yml @@ -3,7 +3,7 @@ pkgdown: 2.1.1 pkgdown_sha: ~ articles: simple-react-app: simple-react-app.html -last_built: 2025-02-07T00:19Z +last_built: 2025-02-07T00:21Z urls: reference: http://tomelliott.co.nz/ts/reference article: http://tomelliott.co.nz/ts/articles diff --git a/reference/index.html b/reference/index.html index e1638f9..2b6a854 100644 --- a/reference/index.html +++ b/reference/index.html @@ -7,7 +7,7 @@ ts - 0.0.0.9000 + 0.1.0 + diff --git a/reference/ts_app.html b/reference/ts_app.html index bad5399..8a11afd 100644 --- a/reference/ts_app.html +++ b/reference/ts_app.html @@ -11,7 +11,7 @@ and the result is subsequently wrapped with ts_app()."> ts - 0.0.0.9000 + 0.1.0 + diff --git a/reference/ts_character.html b/reference/ts_character.html index b7036c2..c6ec422 100644 --- a/reference/ts_character.html +++ b/reference/ts_character.html @@ -9,7 +9,7 @@ or a string array (z.array(z.string()))."> ts - 0.0.0.9000 + 0.1.0 + diff --git a/reference/ts_compile.html b/reference/ts_compile.html index a978229..5c533cc 100644 --- a/reference/ts_compile.html +++ b/reference/ts_compile.html @@ -7,7 +7,7 @@ ts - 0.0.0.9000 + 0.1.0 + diff --git a/reference/ts_dataframe.html b/reference/ts_dataframe.html index 9062536..9a2dc60 100644 --- a/reference/ts_dataframe.html +++ b/reference/ts_dataframe.html @@ -7,7 +7,7 @@ ts - 0.0.0.9000 + 0.1.0 + diff --git a/reference/ts_deploy.html b/reference/ts_deploy.html index fb31a50..d42ebaa 100644 --- a/reference/ts_deploy.html +++ b/reference/ts_deploy.html @@ -7,7 +7,7 @@ ts - 0.0.0.9000 + 0.1.0 + diff --git a/reference/ts_factor.html b/reference/ts_factor.html index 04e7d3c..1c155ef 100644 --- a/reference/ts_factor.html +++ b/reference/ts_factor.html @@ -7,7 +7,7 @@ ts - 0.0.0.9000 + 0.1.0 + diff --git a/reference/ts_function.html b/reference/ts_function.html index 2db58a6..662a16e 100644 --- a/reference/ts_function.html +++ b/reference/ts_function.html @@ -7,7 +7,7 @@ ts - 0.0.0.9000 + 0.1.0 + diff --git a/reference/ts_integer.html b/reference/ts_integer.html index 33351e3..9e8fa54 100644 --- a/reference/ts_integer.html +++ b/reference/ts_integer.html @@ -9,7 +9,7 @@ or a Int32Array (z.instanceof(Int32Array))."> ts - 0.0.0.9000 + 0.1.0 + diff --git a/reference/ts_list.html b/reference/ts_list.html index 10ae5ec..531ed6d 100644 --- a/reference/ts_list.html +++ b/reference/ts_list.html @@ -7,7 +7,7 @@ ts - 0.0.0.9000 + 0.1.0 + diff --git a/reference/ts_logical.html b/reference/ts_logical.html index b8cf8c7..c563605 100644 --- a/reference/ts_logical.html +++ b/reference/ts_logical.html @@ -9,7 +9,7 @@ or a typed Uint8Array (z.instanceof(Uint8Array))."> ts - 0.0.0.9000 + 0.1.0 + diff --git a/reference/ts_null.html b/reference/ts_null.html index d0a17da..9e55d81 100644 --- a/reference/ts_null.html +++ b/reference/ts_null.html @@ -7,7 +7,7 @@ ts - 0.0.0.9000 + 0.1.0 + diff --git a/reference/ts_numeric.html b/reference/ts_numeric.html index 685a79f..b60cf38 100644 --- a/reference/ts_numeric.html +++ b/reference/ts_numeric.html @@ -9,7 +9,7 @@ or a Float64Array (z.instanceof(Float64Array))."> ts - 0.0.0.9000 + 0.1.0 + diff --git a/reference/ts_object.html b/reference/ts_object.html index 4d688b6..28ce39b 100644 --- a/reference/ts_object.html +++ b/reference/ts_object.html @@ -9,7 +9,7 @@ custom types."> ts - 0.0.0.9000 + 0.1.0 + diff --git a/reference/ts_union.html b/reference/ts_union.html index e548301..e506c10 100644 --- a/reference/ts_union.html +++ b/reference/ts_union.html @@ -7,7 +7,7 @@ ts - 0.0.0.9000 + 0.1.0 + diff --git a/reference/ts_void.html b/reference/ts_void.html index 9a87ff6..d835202 100644 --- a/reference/ts_void.html +++ b/reference/ts_void.html @@ -9,7 +9,7 @@ functions that return nothing)."> ts - 0.0.0.9000 + 0.1.0 + diff --git a/reference/type_objects.html b/reference/type_objects.html index 9d65f5a..a805004 100644 --- a/reference/type_objects.html +++ b/reference/type_objects.html @@ -11,7 +11,7 @@ TypeScript counterparts."> ts - 0.0.0.9000 + 0.1.0 + diff --git a/search.json b/search.json index d808460..cdae957 100644 --- a/search.json +++ b/search.json @@ -1 +1 @@ -[{"path":"http://tomelliott.co.nz/ts/LICENSE.html","id":null,"dir":"","previous_headings":"","what":"MIT License","title":"MIT License","text":"Copyright (c) 2024 Tom Elliott Permission hereby granted, free charge, person obtaining copy software associated documentation files (“Software”), deal Software without restriction, including without limitation rights use, copy, modify, merge, publish, distribute, sublicense, /sell copies Software, permit persons Software furnished , subject following conditions: copyright notice permission notice shall included copies substantial portions Software. SOFTWARE PROVIDED “”, WITHOUT WARRANTY KIND, EXPRESS IMPLIED, INCLUDING LIMITED WARRANTIES MERCHANTABILITY, FITNESS PARTICULAR PURPOSE NONINFRINGEMENT. EVENT SHALL AUTHORS COPYRIGHT HOLDERS LIABLE CLAIM, DAMAGES LIABILITY, WHETHER ACTION CONTRACT, TORT OTHERWISE, ARISING , CONNECTION SOFTWARE USE DEALINGS SOFTWARE.","code":""},{"path":"http://tomelliott.co.nz/ts/articles/simple-react-app.html","id":"install-the-ts-package","dir":"Articles","previous_headings":"","what":"Install the ts package","title":"Build a simple ReactJS app","text":"","code":"devtools::install_github('tmelliott/ts')"},{"path":"http://tomelliott.co.nz/ts/articles/simple-react-app.html","id":"write-the-r-code","dir":"Articles","previous_headings":"","what":"Write the R code","title":"Build a simple ReactJS app","text":"code saved file called faithful-app.R, can preview results calling functions: ’s ! ’ll use ts_compile() later create server code Typescript schema app.","code":"cat(readLines('faithful-app.R'), sep = '\\n') #> library(ts) #> #> get_hist <- ts_function( #> function(bins = ts_integer(1)) { #> h <- hist(faithful$waiting, breaks = bins, plot = FALSE) #> data.frame(x = h$mids, y = h$density) #> }, #> result = ts_dataframe(x = ts_numeric(0), y = ts_numeric(0)) #> ) #> get_smoother <- ts_function( #> function(bandwidth = ts_numeric(1)) { #> d <- density(faithful$waiting, bw = bandwidth) #> data.frame(x = d$x, y = d$y) #> }, #> result = ts_dataframe(x = ts_numeric(0), y = ts_numeric(0)) #> ) source('faithful-app.R') get_hist$call(10) #> x y #> 1 42.5 0.0029411765 #> 2 47.5 0.0161764706 #> 3 52.5 0.0242647059 #> 4 57.5 0.0176470588 #> 5 62.5 0.0102941176 #> 6 67.5 0.0073529412 #> 7 72.5 0.0198529412 #> 8 77.5 0.0397058824 #> 9 82.5 0.0404411765 #> 10 87.5 0.0169117647 #> 11 92.5 0.0036764706 #> 12 97.5 0.0007352941"},{"path":"http://tomelliott.co.nz/ts/articles/simple-react-app.html","id":"create-the-react-app","dir":"Articles","previous_headings":"","what":"Create the React app","title":"Build a simple ReactJS app","text":"’m using Vite create app, use framework. Whatever use, ’ll need able bundle code (including libraries zod). now able see default Vite app running http://localhost:5173 (similar, see console output). Now install rserve-ts zod packages:","code":"pnpm create vite faithful-demo --template vanilla-ts cd faithful-demo pnpm install pnpm run dev pnpm install rserve-ts zod"},{"path":"http://tomelliott.co.nz/ts/articles/simple-react-app.html","id":"create-the-server-code","dir":"Articles","previous_headings":"Create the React app","what":"Create the server code","title":"Build a simple ReactJS app","text":"now use ts_compile() function create two files: faithful-app.rserve.R file start Rserve instance apps functions available. faithful-app.rserve.ts contains TypeScript schema (using zod) let use R functions directly app like typescript function! ’ll send straight faithful-demo/src directory.","code":"ts_compile('faithful-app.R', filename = 'faithful-demo/src/faithful-app.rserve')"},{"path":"http://tomelliott.co.nz/ts/articles/simple-react-app.html","id":"write-the-app","dir":"Articles","previous_headings":"Create the React app","what":"Write the app","title":"Build a simple ReactJS app","text":"rest process simply requires writing TypeScript code. won’t go detail since ’s focus vignette, can see code written basic comments. Copy paste get app running.","code":"// main.ts import \"./style.css\"; import RserveClient from \"rserve-ts\"; import faithfulApp from \"./faithful-app.rserve\"; import { z } from \"zod\"; document.querySelector(\"#app\")!.innerHTML = `

Rserve and TypeScript<\/h1>
Number of bins: