-- -*- M2-comint -*- hash: 10875978828788956290

i1 : x = RObject null

o1 = NULL

o1 : RObject of type NULL

i2 : value x === null

o2 = true

i3 : x = RObject true

o3 = [1] TRUE

o3 : RObject of type logical

i4 : value x

o4 = true

i5 : x = RObject 5

o5 = [1] 5

o5 : RObject of type integer

i6 : value x

o6 = 5

i7 : x = RObject (3/2)

o7 = [1] 1.5

o7 : RObject of type double

i8 : value x

o8 = 1.5

o8 : RR (of precision 53)

i9 : x = RObject ii

o9 = [1] 0+1i

o9 : RObject of type complex

i10 : value x

o10 = ii

o10 : CC (of precision 53)

i11 : x = RObject foo

o11 = [1] "foo"

o11 : RObject of type character

i12 : value x

o12 = foo

i13 : x = RObject {1, 3, 5, 7}

o13 = [1] 1 3 5 7

o13 : RObject of type integer

i14 : value x

o14 = {1, 3, 5, 7}

o14 : List

i15 : x = RObject (3, 6, 9)

o15 = [[1]]
      [1] 3

      [[2]]
      [1] 6

      [[3]]
      [1] 9


o15 : RObject of type pairlist

i16 : value x

o16 = (3, 6, 9)

o16 : Sequence

i17 : RList = RFunction "list"

o17 = RList

o17 : RFunction

i18 : x = RList(2, 4, 6, 8)

o18 = [[1]]
      [1] 2

      [[2]]
      [1] 4

      [[3]]
      [1] 6

      [[4]]
      [1] 8


o18 : RObject of type list

i19 : value x

o19 = {2, 4, 6, 8}

o19 : List

i20 : A = random(ZZ^2, ZZ^3)

o20 = | 8 3 8 |
      | 1 7 3 |

               2       3
o20 : Matrix ZZ  <-- ZZ

i21 : x = RObject A

o21 =      [,1] [,2] [,3]
      [1,]    8    3    8
      [2,]    1    7    3

o21 : RObject of type integer

i22 : value x

o22 = {{8, 1}, {3, 7}, {8, 3}}

o22 : List

i23 : A == transpose matrix oo

o23 = true

i24 : x = RObject {foo => 1, 2, bar => 3}

o24 = foo     bar 
        1   2   3 

o24 : RObject of type integer

i25 : value x

o25 = {foo => 1, 2, bar => 3}

o25 : List

i26 : 
