Releases: KxSystems/embedR
Releases · KxSystems/embedR
v1.5.0
What's Changed
- Fix: memory leak on converting POSIXlt to q
- Fix: Rset could crash if first param not char/string/sym
- Updated docs
- 1 item value from R converted to q atom instead of 1 item list
- Rfunc for calling r function with q parameters. See https://github.com/KxSystems/embedR/blob/master/docs/README.md for details e.g. calling r
pastefunction to concatenate 2 stringscalling rRfunc["paste";("string1";"string2")]
substratefunctioncalling rRfunc["substr";("text";1i;2i)]
maxfunction for max value of a list of intsdefining a function with 2 params and callingRfunc["max";enlist "i"$til 5]
Rcmd["my_function <- function(x,y) {(x+y)}"]; Rfunc["my_function";2 5i]
Full Changelog: v1.4.0...v1.5.0
v1.4.0
What's Changed
- use r nanotime for timestamp. fixes loss of precision, null/inf mapping
q)Rset["a";2025.07.26D23:59:59.998999999]
q)"nanotime"~last Rget"class(a)"
- fix q datetime mapping to POSIXt and null/inf mapping
- fix q short null now maps to numeric null
- removed Rclose (prev performed no action)
- more tests & code clean-up
- moved q parsing into library c code
- fix table parsing
q)\l rinit.q
q)Ropen[];
q)Rset["bbb"; ([] uu: 3 4 0N 9j; vv: 2 0n 5 3f)];
q)show Rget"bbb"
uu vv
-----
3 2
4
5
9 3
q)Rset["ccc"; `uu`vv`ww`xx!(343 243 3435f; ([] uu: til 10; vv: 10?1.0);34.2;"blabla") ];
q)show Rget["ccc"]
uu| 343 243 3435f
vv| +`uu`vv!(0 1 2 3 4 5 6 7 8 9;0.3927524 0.5170911 0.5159796 0.4066642 0.1780839 0.3017723 0.785033 0.5347096 0.7111716 0.411597)
ww| ,34.2
xx| "blabla"
q)Rset["A1"]6.7698 6.7625 6.7625 6.7625 6.7698 6.7918 6.8211 6.8432 6.8065 6.8802
q)Rset["A2"]7.2025 7.1934 7.198 7.198 7.2071 7.239 7.2481 7.2481 7.2299 7.3123
q)Rcmd"tmp<-lm(A1~A2)"
q)show Rget"tmp$model"
A1 A2
-------------
6.7698 7.2025
6.7625 7.1934
6.7625 7.198
6.7625 7.198
6.7698 7.2071
6.7918 7.239
6.8211 7.2481
6.8432 7.2481
6.8065 7.2299
6.8802 7.3123
Full Changelog: v1.3.0...v1.4.0
v1.3.0
What's Changed
- Fixed branching bug && Fixed Windows socketpair issue Closes #7 ( #10)
- add docs prev available on code.kx.com (#17)
- fix byte conversion (#18)
- fix issue setting bytes (data type 4) from q to r
- fix for logical types from r to q (#19)
- before
afterq)Rget"as.pairlist(TRUE)" (,1i;()) q)Rget"as.logical(c(1,FALSE,NA))" 1 0 0Ni q)Rget"c(TRUE,FALSE,NA,TRUE,TRUE,FALSE)" 1 0 0N 1 1 0i q)Rcmd"b= 2 == array(1:24,c(2,3,4))"; q)Rget"b" ((0 0 0i;1 0 0i);(0 0 0i;0 0 0i);(0 0 0i;0 0 0i);(0 0 0i;0 0 0i))q)Rget"as.pairlist(TRUE)" ,1b q)Rget"as.logical(c(1,FALSE,NA))" 100b q)Rget"c(TRUE,FALSE,NA,TRUE,TRUE,FALSE)" 100110b q)Rcmd"b= 2 == array(1:24,c(2,3,4))"; q)Rget"b" (000b;100b);(000b;000b);(000b;000b);(000b;000b) - fix for guid types from r to q and q to r (#19)
- fix for long mapping (#20, #21)
- q long now uses integer64 from the bit64 package in r, supporting mapping to/from q null/inf
- improve performance of r to q parse of double/int (#21)
Full Changelog: v1.2.1...v1.3.0
Patch release
- v1.2.1: allow R only from main thread
- Fixed type branching bug
- Fixed socket type for Windows
factor conversion to symbol
Merge pull request #2 from sv/master fix factor conversion
simplify working with interactive plots
- run an internal thread to process event loop
- lower requirement for glibc to run on older Linux distributions
- ropen returns mode of operation and rclose does nothing now
Initial release as a separate repo
v1.0.0 update push key for travis