Dear R-helpers, When I run > HTMLStart(outdir = outDir, echo = TRUE, HTMLframe = TRUE, + filename = 'jdHW1', Title = 'John Doe HW 2') *** Output redirected to directory: /Users/mk/Documents/teach/ 2006.3.PSYC712 *** Use HTMLStop() to end redirection.[1] TRUE HTML> as.title("This is my first title") [1] "This is my first title" attr(,"class") [1] "title" HTML> x <- 1 HTML> y<- 2 HTML> x+y [1] 3 HTML> plot(sin, -pi, 2*pi, main = 'Sinus') HTML> HTMLplot(Caption = 'Look at this curve!') [1] TRUE HTML> HTMLStop() [1] "/Users/mk/Documents/teach/2006.3.PSYC712/jdHW1_main.html" The output in file:///Users/mk/Documents/teach/2006.3.PSYC712/ jdHW1.html is correct until we get to the plot() function. The output is: as.title("This is my first title") > x <- 1 > y <- 2 > x + y 3 > x(x) NULL and then the figure. What should I do to have it echo the command "plot(sin, -pi, 2*pi, main = 'Sinus')" instead of "x(x)"? _____________________________ Professor Michael Kubovy University of Virginia Department of Psychology USPS: P.O.Box 400400 Charlottesville, VA 22904-4400 Parcels: Room 102 Gilmer Hall McCormick Road Charlottesville, VA 22903 Office: B011 +1-434-982-4729 Lab: B019 +1-434-982-4751 Fax: +1-434-982-4766 WWW: http://www.people.virginia.edu/~mk9y/