Skip to content

Instantly share code, notes, and snippets.

@FrankPortman
Created January 30, 2015 00:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FrankPortman/f5cfe32596fd47080286 to your computer and use it in GitHub Desktop.
Save FrankPortman/f5cfe32596fd47080286 to your computer and use it in GitHub Desktop.
header read result: 16
DUMP [16]: 20 00 00 00 a4 00 00 00 00 00 00 00 00 00 00 00 | ...............
loading buffer (awaiting 164 bytes)
parsing parameters (buf=0x7fc037800000, len=164)
DUMP [164]: 04 08 00 00 2e 61 72 67 31 00 01 01 0a 94 00 00 21 90 00 00 00 00 00 00 00 00 08 40 00 00 00 00 00 00 08 40 00 00 00 00 00 00 08 40 00 00 00 00 00 00 08 40 00 00 00 00 00 00 08 40 00 00 00 00 00 00 08 40 00 00 00 00 00 00 08 40 00 00 00 00 00 00 08 40 00 00 00 00 00 00 08 40 00 00 00 00 00 00 08 40 00 00 00 00 00 00 08 40 00 00 00 00 00 00 08 40 00 00 00 00 00 00 08 40 00 00 00 00 00 ... |.....arg1.......!..........@.......@.......@.......@.......@.......@.......@.......@.......@.......@.......@.......@.......@.....
PAR[0]: 000000a4 (PAR_LEN=8, PAR_TYPE=4, large=no, c=0x7fc037800000, ptr=0x7fc037800004)
PAR[1]: 000000a4 (PAR_LEN=148, PAR_TYPE=10, large=no, c=0x7fc03780000c, ptr=0x7fc037800010)
CMD=00000020, pars=2
>>CMD_set/assignREXP (.arg1, REXP)
decode: type=33, len=144
assigning SEXP: Vector of real variables: 3.000000, 3.000000, 3.000000, 3.000000, 3.000000, 3.000000, 3.000000, 3.000000, 3.000000, 3.000000, 3.000000, 3.000000, 3.000000, 3.000000, 3.000000, 3.000000, 3.000000, 3.000000
OUT.sendRespData
HEAD DUMP [16]: 01 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 |................
(no body)
header read result: 16
DUMP [16]: 20 00 00 00 a4 00 00 00 00 00 00 00 00 00 00 00 | ...............
loading buffer (awaiting 164 bytes)
parsing parameters (buf=0x7fc037800000, len=164)
DUMP [164]: 04 08 00 00 2e 61 72 67 32 00 01 01 0a 94 00 00 21 90 00 00 00 00 00 00 00 00 10 40 00 00 00 00 00 00 10 40 00 00 00 00 00 00 10 40 00 00 00 00 00 00 10 40 00 00 00 00 00 00 10 40 00 00 00 00 00 00 10 40 00 00 00 00 00 00 10 40 00 00 00 00 00 00 10 40 00 00 00 00 00 00 10 40 00 00 00 00 00 00 10 40 00 00 00 00 00 00 10 40 00 00 00 00 00 00 10 40 00 00 00 00 00 00 10 40 00 00 00 00 00 ... |.....arg2.......!..........@.......@.......@.......@.......@.......@.......@.......@.......@.......@.......@.......@.......@.....
PAR[0]: 000000a4 (PAR_LEN=8, PAR_TYPE=4, large=no, c=0x7fc037800000, ptr=0x7fc037800004)
PAR[1]: 000000a4 (PAR_LEN=148, PAR_TYPE=10, large=no, c=0x7fc03780000c, ptr=0x7fc037800010)
CMD=00000020, pars=2
>>CMD_set/assignREXP (.arg2, REXP)
decode: type=33, len=144
assigning SEXP: Vector of real variables: 4.000000, 4.000000, 4.000000, 4.000000, 4.000000, 4.000000, 4.000000, 4.000000, 4.000000, 4.000000, 4.000000, 4.000000, 4.000000, 4.000000, 4.000000, 4.000000, 4.000000, 4.000000
OUT.sendRespData
HEAD DUMP [16]: 01 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 |................
(no body)
header read result: 16
DUMP [16]: 20 00 00 00 a4 00 00 00 00 00 00 00 00 00 00 00 | ...............
loading buffer (awaiting 164 bytes)
parsing parameters (buf=0x7fc037800000, len=164)
DUMP [164]: 04 08 00 00 2e 61 72 67 33 00 01 01 0a 94 00 00 21 90 00 00 00 00 00 00 00 00 f0 3f 00 00 00 00 00 00 f0 3f 00 00 00 00 00 00 f0 3f 00 00 00 00 00 00 f0 3f 00 00 00 00 00 00 f0 3f 00 00 00 00 00 00 f0 3f 00 00 00 00 00 00 f0 3f 00 00 00 00 00 00 f0 3f 00 00 00 00 00 00 f0 3f 00 00 00 00 00 00 f0 3f 00 00 00 00 00 00 f0 3f 00 00 00 00 00 00 f0 3f 00 00 00 00 00 00 f0 3f 00 00 00 00 00 ... |.....arg3.......!..........?.......?.......?.......?.......?.......?.......?.......?.......?.......?.......?.......?.......?.....
PAR[0]: 000000a4 (PAR_LEN=8, PAR_TYPE=4, large=no, c=0x7fc037800000, ptr=0x7fc037800004)
PAR[1]: 000000a4 (PAR_LEN=148, PAR_TYPE=10, large=no, c=0x7fc03780000c, ptr=0x7fc037800010)
CMD=00000020, pars=2
>>CMD_set/assignREXP (.arg3, REXP)
decode: type=33, len=144
assigning SEXP: Vector of real variables: 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000, 1.000000
OUT.sendRespData
HEAD DUMP [16]: 01 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 |................
(no body)
header read result: 16
DUMP [16]: 20 00 00 00 a4 00 00 00 00 00 00 00 00 00 00 00 | ...............
loading buffer (awaiting 164 bytes)
parsing parameters (buf=0x7fc037800000, len=164)
DUMP [164]: 04 08 00 00 2e 61 72 67 34 00 01 01 0a 94 00 00 21 90 00 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 40 00 00 00 00 00 ... |.....arg4.......!..........@.......@.......@.......@.......@.......@.......@.......@.......@.......@.......@.......@.......@.....
PAR[0]: 000000a4 (PAR_LEN=8, PAR_TYPE=4, large=no, c=0x7fc037800000, ptr=0x7fc037800004)
PAR[1]: 000000a4 (PAR_LEN=148, PAR_TYPE=10, large=no, c=0x7fc03780000c, ptr=0x7fc037800010)
CMD=00000020, pars=2
>>CMD_set/assignREXP (.arg4, REXP)
decode: type=33, len=144
assigning SEXP: Vector of real variables: 2.000000, 2.000000, 2.000000, 2.000000, 2.000000, 2.000000, 2.000000, 2.000000, 2.000000, 2.000000, 2.000000, 2.000000, 2.000000, 2.000000, 2.000000, 2.000000, 2.000000, 2.000000
OUT.sendRespData
HEAD DUMP [16]: 01 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 |................
(no body)
header read result: 16
DUMP [16]: 20 00 00 00 58 00 00 00 00 00 00 00 00 00 00 00 | ...X...........
loading buffer (awaiting 88 bytes)
parsing parameters (buf=0x7fc037800000, len=88)
DUMP [88]: 04 08 00 00 2e 63 6d 64 00 01 01 01 0a 48 00 00 22 44 00 00 6c 69 62 72 61 72 79 28 65 64 6d 75 6e 64 73 42 61 79 65 73 29 3b 70 72 6f 62 5f 31 5f 62 65 61 74 73 5f 32 28 2e 61 72 67 31 2c 20 2e 61 72 67 32 2c 20 2e 61 72 67 33 2c 20 2e 61 72 67 34 29 00 01 01 01 |.....cmd.....H.."D..library(mypackage);prob_1_beats_2(.arg1, .arg2, .arg3, .arg4)....
PAR[0]: 00000058 (PAR_LEN=8, PAR_TYPE=4, large=no, c=0x7fc037800000, ptr=0x7fc037800004)
PAR[1]: 00000058 (PAR_LEN=72, PAR_TYPE=10, large=no, c=0x7fc03780000c, ptr=0x7fc037800010)
CMD=00000020, pars=2
>>CMD_set/assignREXP (.cmd, REXP)
decode: type=34, len=68
assigning SEXP: String vector of length 1:
scalar string: "library(mypackage);prob_1_beats_2(.arg1, .arg2, .arg3, .arg4)"
OUT.sendRespData
HEAD DUMP [16]: 01 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 |................
(no body)
header read result: 16
DUMP [16]: 03 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 |....@...........
loading buffer (awaiting 64 bytes)
parsing parameters (buf=0x7fc037800000, len=64)
DUMP [64]: 04 3c 00 00 62 61 73 65 3a 3a 74 72 79 28 62 61 73 65 3a 3a 65 76 61 6c 28 62 61 73 65 3a 3a 70 61 72 73 65 28 74 65 78 74 3d 2e 63 6d 64 29 29 2c 20 73 69 6c 65 6e 74 3d 54 52 55 45 29 00 01 |.<..base::try(base::eval(base::parse(text=.cmd)), silent=TRUE)..
PAR[0]: 00000040 (PAR_LEN=60, PAR_TYPE=4, large=no, c=0x7fc037800000, ptr=0x7fc037800004)
CMD=00000003, pars=1
parseString("base::try(base::eval(base::parse(text=.cmd)), silent=TRUE)")
buffer parsed, stat=1, parts=1
result type: 20, length: 1
R_tryEval(xp,R_GlobalEnv,&Rerror);
Calling R_tryEval for expression 1 [type=6] ...
Expression 1, error code: 0
expression(s) evaluated (Rerror=0).
[*has attr*] String vector of length 1:
scalar string: "Error in eval(expr, envir, enclos) : expecting a single value
"
getStorageSize(0x7fc0376304e8,type=16,len=1) getStorageSize(0x7fc037630bc0,type=2,len=929220856) getStorageSize(0x7fc03762c8f8,type=16,len=1) getStorageSize(0x7fc0348ede00,type=9,len=9) = 16
= 20
getStorageSize(0x7fc034007148,type=1,len=872446424) = 12
getStorageSize(0x7fc037617cd8,type=19,len=3) getStorageSize(0x7fc037621e38,type=2,len=929135688) getStorageSize(0x7fc037617c48,type=16,len=3) getStorageSize(0x7fc034058858,type=9,len=7) = 12
getStorageSize(0x7fc03400b6e8,type=9,len=4) = 12
getStorageSize(0x7fc037621b08,type=9,len=8) = 16
= 44
getStorageSize(0x7fc034006c78,type=1,len=872445992) = 12
getStorageSize(0x7fc037617d68,type=16,len=4) getStorageSize(0x7fc037617d20,type=9,len=20) = 28
getStorageSize(0x7fc037621b40,type=9,len=8) = 16
getStorageSize(0x7fc034176d98,type=9,len=5) = 12
getStorageSize(0x7fc034a2ca68,type=9,len=9) = 16
= 76
getStorageSize(0x7fc034007148,type=1,len=872446424) = 12
= 148
getStorageSize(0x7fc03761d358,type=16,len=1) getStorageSize(0x7fc037617c90,type=9,len=24) = 32
= 36
getStorageSize(0x7fc037621e70,type=6,len=872692560) getStorageSize(0x7fc034043b50,type=1,len=872689064) = 12
getStorageSize(0x7fc034007378,type=0,len=872444792) = 8
getStorageSize(0x7fc034074aa0,type=1,len=872868392) = 12
getStorageSize(0x7fc034007378,type=0,len=872444792) = 8
getStorageSize(0x7fc0340577f8,type=1,len=872778152) = 12
getStorageSize(0x7fc034007378,type=0,len=872444792) = 8
getStorageSize(0x7fc034072070,type=1,len=872868536) = 12
getStorageSize(0x7fc034007378,type=0,len=872444792) = 8
= 84
getStorageSize(0x7fc034007378,type=0,len=872444792) = 8
= 280
getStorageSize(0x7fc034a3d780,type=1,len=883083880) = 16
= 332
getStorageSize(0x7fc037618b40,type=9,len=62) = 68
= 404
result storage size = 505 bytes
getStorageSize(0x7fc037630bc0,type=2,len=929220856) getStorageSize(0x7fc03762c8f8,type=16,len=1) getStorageSize(0x7fc0348ede00,type=9,len=9) = 16
= 20
getStorageSize(0x7fc034007148,type=1,len=872446424) = 12
getStorageSize(0x7fc037617cd8,type=19,len=3) getStorageSize(0x7fc037621e38,type=2,len=929135688) getStorageSize(0x7fc037617c48,type=16,len=3) getStorageSize(0x7fc034058858,type=9,len=7) = 12
getStorageSize(0x7fc03400b6e8,type=9,len=4) = 12
getStorageSize(0x7fc037621b08,type=9,len=8) = 16
= 44
getStorageSize(0x7fc034006c78,type=1,len=872445992) = 12
getStorageSize(0x7fc037617d68,type=16,len=4) getStorageSize(0x7fc037617d20,type=9,len=20) = 28
getStorageSize(0x7fc037621b40,type=9,len=8) = 16
getStorageSize(0x7fc034176d98,type=9,len=5) = 12
getStorageSize(0x7fc034a2ca68,type=9,len=9) = 16
= 76
getStorageSize(0x7fc034007148,type=1,len=872446424) = 12
= 148
getStorageSize(0x7fc03761d358,type=16,len=1) getStorageSize(0x7fc037617c90,type=9,len=24) = 32
= 36
getStorageSize(0x7fc037621e70,type=6,len=872692560) getStorageSize(0x7fc034043b50,type=1,len=872689064) = 12
getStorageSize(0x7fc034007378,type=0,len=872444792) = 8
getStorageSize(0x7fc034074aa0,type=1,len=872868392) = 12
getStorageSize(0x7fc034007378,type=0,len=872444792) = 8
getStorageSize(0x7fc0340577f8,type=1,len=872778152) = 12
getStorageSize(0x7fc034007378,type=0,len=872444792) = 8
getStorageSize(0x7fc034072070,type=1,len=872868536) = 12
getStorageSize(0x7fc034007378,type=0,len=872444792) = 8
= 84
getStorageSize(0x7fc034007378,type=0,len=872444792) = 8
= 280
getStorageSize(0x7fc034a3d780,type=1,len=883083880) = 16
= 332
getStorageSize(0x7fc03762c8f8,type=16,len=1) getStorageSize(0x7fc0348ede00,type=9,len=9) = 16
= 20
stored 0x7fc03762c8f8 at 0x108134010, 12 bytes
getStorageSize(0x7fc034007148,type=1,len=872446424) = 12
stored 0x7fc034007148 at 0x108134020, 8 bytes
getStorageSize(0x7fc037617cd8,type=19,len=3) getStorageSize(0x7fc037621e38,type=2,len=929135688) getStorageSize(0x7fc037617c48,type=16,len=3) getStorageSize(0x7fc034058858,type=9,len=7) = 12
getStorageSize(0x7fc03400b6e8,type=9,len=4) = 12
getStorageSize(0x7fc037621b08,type=9,len=8) = 16
= 44
getStorageSize(0x7fc034006c78,type=1,len=872445992) = 12
getStorageSize(0x7fc037617d68,type=16,len=4) getStorageSize(0x7fc037617d20,type=9,len=20) = 28
getStorageSize(0x7fc037621b40,type=9,len=8) = 16
getStorageSize(0x7fc034176d98,type=9,len=5) = 12
getStorageSize(0x7fc034a2ca68,type=9,len=9) = 16
= 76
getStorageSize(0x7fc034007148,type=1,len=872446424) = 12
= 148
getStorageSize(0x7fc03761d358,type=16,len=1) getStorageSize(0x7fc037617c90,type=9,len=24) = 32
= 36
getStorageSize(0x7fc037621e70,type=6,len=872692560) getStorageSize(0x7fc034043b50,type=1,len=872689064) = 12
getStorageSize(0x7fc034007378,type=0,len=872444792) = 8
getStorageSize(0x7fc034074aa0,type=1,len=872868392) = 12
getStorageSize(0x7fc034007378,type=0,len=872444792) = 8
getStorageSize(0x7fc0340577f8,type=1,len=872778152) = 12
getStorageSize(0x7fc034007378,type=0,len=872444792) = 8
getStorageSize(0x7fc034072070,type=1,len=872868536) = 12
getStorageSize(0x7fc034007378,type=0,len=872444792) = 8
= 84
getStorageSize(0x7fc034007378,type=0,len=872444792) = 8
= 280
getStorageSize(0x7fc037621e38,type=2,len=929135688) getStorageSize(0x7fc037617c48,type=16,len=3) getStorageSize(0x7fc034058858,type=9,len=7) = 12
getStorageSize(0x7fc03400b6e8,type=9,len=4) = 12
getStorageSize(0x7fc037621b08,type=9,len=8) = 16
= 44
getStorageSize(0x7fc034006c78,type=1,len=872445992) = 12
getStorageSize(0x7fc037617d68,type=16,len=4) getStorageSize(0x7fc037617d20,type=9,len=20) = 28
getStorageSize(0x7fc037621b40,type=9,len=8) = 16
getStorageSize(0x7fc034176d98,type=9,len=5) = 12
getStorageSize(0x7fc034a2ca68,type=9,len=9) = 16
= 76
getStorageSize(0x7fc034007148,type=1,len=872446424) = 12
= 148
getStorageSize(0x7fc037617c48,type=16,len=3) getStorageSize(0x7fc034058858,type=9,len=7) = 12
getStorageSize(0x7fc03400b6e8,type=9,len=4) = 12
getStorageSize(0x7fc037621b08,type=9,len=8) = 16
= 44
stored 0x7fc037617c48 at 0x108134034, 24 bytes
getStorageSize(0x7fc034006c78,type=1,len=872445992) = 12
stored 0x7fc034006c78 at 0x108134050, 8 bytes
getStorageSize(0x7fc037617d68,type=16,len=4) getStorageSize(0x7fc037617d20,type=9,len=20) = 28
getStorageSize(0x7fc037621b40,type=9,len=8) = 16
getStorageSize(0x7fc034176d98,type=9,len=5) = 12
getStorageSize(0x7fc034a2ca68,type=9,len=9) = 16
= 76
stored 0x7fc037617d68 at 0x10813405c, 48 bytes
getStorageSize(0x7fc034007148,type=1,len=872446424) = 12
stored 0x7fc034007148 at 0x108134090, 8 bytes
stored 0x7fc037621e38 at 0x108134030, 104 bytes
getStorageSize(0x7fc03761d358,type=16,len=1) getStorageSize(0x7fc037617c90,type=9,len=24) = 32
= 36
stored 0x7fc03761d358 at 0x10813409c, 28 bytes
getStorageSize(0x7fc037621e70,type=6,len=872692560) getStorageSize(0x7fc034043b50,type=1,len=872689064) = 12
getStorageSize(0x7fc034007378,type=0,len=872444792) = 8
getStorageSize(0x7fc034074aa0,type=1,len=872868392) = 12
getStorageSize(0x7fc034007378,type=0,len=872444792) = 8
getStorageSize(0x7fc0340577f8,type=1,len=872778152) = 12
getStorageSize(0x7fc034007378,type=0,len=872444792) = 8
getStorageSize(0x7fc034072070,type=1,len=872868536) = 12
getStorageSize(0x7fc034007378,type=0,len=872444792) = 8
= 84
getStorageSize(0x7fc034043b50,type=1,len=872689064) = 12
stored 0x7fc034043b50 at 0x1081340c0, 8 bytes
getStorageSize(0x7fc034074aa0,type=1,len=872868392) = 12
stored 0x7fc034074aa0 at 0x1081340cc, 8 bytes
getStorageSize(0x7fc0340577f8,type=1,len=872778152) = 12
stored 0x7fc0340577f8 at 0x1081340d8, 8 bytes
getStorageSize(0x7fc034072070,type=1,len=872868536) = 12
stored 0x7fc034072070 at 0x1081340e4, 8 bytes
stored 0x7fc037621e70 at 0x1081340bc, 48 bytes
stored 0x7fc034007378 at 0x1081340f0, 0 bytes
stored 0x7fc037617cd8 at 0x10813402c, 196 bytes
getStorageSize(0x7fc034a3d780,type=1,len=883083880) = 16
stored 0x7fc034a3d780 at 0x1081340f4, 12 bytes
stored 0x7fc037630bc0 at 0x10813400c, 244 bytes
stored 0x7fc0376304e8 at 0x108134008, 312 bytes
stored SEXP; length=320 (incl. DT_SEXP header)
OUT.sendRespData
HEAD DUMP [16]: 01 00 01 00 40 01 00 00 00 00 00 00 00 00 00 00 |....@...........
BODY DUMP [320]: 0a 3c 01 00 a2 38 01 00 15 f4 00 00 22 0c 00 00 74 72 79 2d 65 72 72 6f 72 00 01 01 13 08 00 00 63 6c 61 73 73 00 00 00 90 c4 00 00 15 68 00 00 22 18 00 00 6d 65 73 73 61 67 65 00 63 61 6c 6c 00 63 70 70 73 74 61 63 6b 00 01 01 13 08 00 00 6e 61 6d 65 73 00 00 00 22 30 00 00 52 63 70 70 3a 3a 6e 6f 74 5f 63 6f 6d 70 61 74 69 62 6c 65 00 43 2b 2b 45 72 72 6f 72 00 65 72 72 6f 72 00 63 ... |.<...8......"...try-error.......class........h.."...message.call.cppstack.......names..."0..Rcpp::not_compatible.C++Error.error.c
reply sent.
Connection closed by peer.
done.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment