-- -*- M2-comint -*- hash: 11332243639472017798

i1 : RObject null

o1 = NULL

o1 : RObject of type NULL

i2 : RObject true

o2 = [1] TRUE

o2 : RObject of type logical

i3 : NA

o3 = [1] NA

o3 : RObject of type logical

i4 : RObject 1

o4 = [1] 1

o4 : RObject of type integer

i5 : RObject pi

o5 = [1] 3.141593

o5 : RObject of type double

i6 : RObject ii

o6 = [1] 0+1i

o6 : RObject of type complex

i7 : RObject "Hello, world!"

o7 = [1] "Hello, world!"

o7 : RObject of type character

i8 : RObject foo

o8 = [1] "foo"

o8 : RObject of type character

i9 : RObject {true, false, true, false}

o9 = [1]  TRUE FALSE  TRUE FALSE

o9 : RObject of type logical

i10 : RObject {2, 4, 6, 8, 10}

o10 = [1]  2  4  6  8 10

o10 : RObject of type integer

i11 : RObject {0, 1/2, exp 1}

o11 = [1] 0.000000 0.500000 2.718282

o11 : RObject of type double

i12 : RObject apply(3, k -> exp(2*k*pi*ii/3))

o12 = [1]  1.0+0.0000000i -0.5+0.8660254i -0.5-0.8660254i

o12 : RObject of type complex

i13 : RObject {"foo", "bar", "baz"}

o13 = [1] "foo" "bar" "baz"

o13 : RObject of type character

i14 : RObject (2, 3, 5)

o14 = [[1]]
      [1] 2

      [[2]]
      [1] 3

      [[3]]
      [1] 5


o14 : RObject of type pairlist

i15 : RObject {foo => 1, bar => 2}

o15 = foo bar 
        1   2 

o15 : RObject of type integer

i16 : RObject (baz => 3, qux => 4)

o16 = $baz
      [1] 3

      $qux
      [1] 4


o16 : RObject of type pairlist

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

o17 = | 8 3 8 |
      | 1 7 3 |

               2       3
o17 : Matrix ZZ  <-- ZZ

i18 : RObject A

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

o18 : RObject of type integer

i19 : 
