Re: [R] No output in sourced R program

From: Berwin A Turlach <berwin_at_maths.uwa.edu.au>
Date: Wed 17 May 2006 - 20:16:03 EST

G'day Sigbert,

>>>>> "SK" == Sigbert Klinke <sigbert@wiwi.hu-berlin.de> writes:

    SK> Hi, If I type it in the command line I get, as expected:

>> 1:30

    SK> [1] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22     SK> 23 24 25 [26] 26 27 28 29 30
>> q()

    SK> Save workspace image? [y/n/c]: n

    SK> If I create a program
    SK> 02e451444d6a46acf551996579092c911b90aa8e.R and run it I get

    SK> R : Copyright 2006, The R Foundation for Statistical Computing     SK> Version 2.3.0 (2006-04-24)
>> source("02e451444d6a46acf551996579092c911b90aa8e.R")
    SK> Save workspace image? [y/n/c]: n

    SK> mars:/srv/www/htdocs/mediawiki/teachwiki/Rfiles # more
    SK> 02e451444d6a46acf551996579092c911b90aa8e.R
    SK> rfiles<-"/srv/www/htdocs/mediawiki/teachwiki/Rfiles" 1:30 q()

    SK> No output from 1:30 to the screen. Any idea what I do wrong ? Autoprint of objects is only enabled on the command line, on all other levels you have to explictly call the print() command. So your script should be:

        print(1:30)
        q()

BTW, interesting name for the file. How do you select that one? ;-)

Cheers,

        Berwin

PS: I heard rumours that Wiwi had HU-Berlin was using R instead of

     XploRe for some tasks..... Slowly I start to believe it... :-))


R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Wed May 17 20:24:42 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Wed 17 May 2006 - 22:10:12 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.