Thank you for your reminder! I think you don't have to tell me to read the document.
I have done that many times already. My feeling after reading the "creating package" manual is that my god, this job needs a Computer Science degree to do it. It is way too complicated. There should be simpler ways. Perhaps I don't need a package. I just need to be able to call my "clearscreen" function from all of my other scripts... Where do I put my "clearscreen" function? Is there a command similar to "include" in C++? Is there a path management that I can call "clearscreen" function from anywhere as long as its in path? On 3/11/06, Gavin Simpson <[EMAIL PROTECTED]> wrote: > > On Fri, 2006-03-10 at 22:50 -0800, Michael wrote: > > Great! It worked! Thank you so much! > > > > Now since it worked greatly, how can I put this function into my own > library > > or package, so later on I can call this function from my other scripts? > > > > Thanks a lot! > > Michael, > > Read the two manuals that cover writing functions and preparing > *packages* of code, which come with R or get them here: > > http://cran.r-project.org/manuals.html > > "An Introduction to R" and "Writing R Extensions", > > After reading and digesting, if you still have questions then post them > to the list. People here provide their time for free and it is not much > to expect posters to try to help themselves out first - especially as > the developers have gone to such great lengths to produce quality > documentation that explains all of this. > > HTH > > G > > > > > > > On 3/10/06, jim holtman <[EMAIL PROTECTED]> wrote: > > > > > > The archives had the following in it: > > > > > > [R] how to clear screen in R-console? > > > > > > - *This message*: [ Message body< > http://finzi.psych.upenn.edu/R/Rhelp02a/archive/70722.html#start>] [ More > > > options< > http://finzi.psych.upenn.edu/R/Rhelp02a/archive/70722.html#options2>] > > > - *Related messages*: [ Next message< > http://finzi.psych.upenn.edu/R/Rhelp02a/archive/70723.html>] [ Previous > > > message <http://finzi.psych.upenn.edu/R/Rhelp02a/archive/70721.html>] > [ In > > > reply to<http://finzi.psych.upenn.edu/R/Rhelp02a/archive/70708.html>] > [ Next > > > in thread< > http://finzi.psych.upenn.edu/R/Rhelp02a/archive/70800.html>] [ > > > Replies< > http://finzi.psych.upenn.edu/R/Rhelp02a/archive/70722.html#replies>] > > > > > > *From*: Gabor Grothendieck > <ggrothendieck<ggrothendieck?Subject=Re:%20[R]%20how%20to%20clear%20screen%20in%20R-console?>> > > > > > > *Date*: Fri, 17 Feb 2006 12:36:51 -0500 > > > > > > Here is a version that uses rcom instead of RDCOMClient. > > > This has the advantage that rcom is on CRAN. > > > > > > cls <- function() { > > > require(rcom) > > > wsh <- comCreateObject("Wscript.Shell") > > > comInvoke(wsh, "SendKeys", "\014") > > > invisible(wsh) > > > } > > > cls() # test > > > > > > On 2/17/06, Gabor Grothendieck <ggrothendieck at gmail.com> wrote: > > > *> Here is a translation of Norm Olsen's vbscript code into pure R. * > > > *> This is intended for use with the Windows Rgui interface. * > > > > > > > > > > > > > > > On 3/10/06, Michael <[EMAIL PROTECTED]> wrote: > > > > > > > something like "sprintf" in C? > > > > > > so I can do: > > > > > > print(sprintf("the correct result is %3.4f\n", myresult)); > > > > > > ------- > > > > > > Also, I am desperately looking for a "clear console screen" function > in > > > R... > > > > > > thanks a lot! > > > > > > [[alternative HTML version deleted]] > > > > > > ______________________________________________ > > > 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< > http://www.r-project.org/posting-guide.html> > > > > > > > > > > > > > > > -- > > > Jim Holtman > > > Cincinnati, OH > > > +1 513 646 9390 (Cell) > > > +1 513 247 0281 (Home) > > > > > > What the problem you are trying to solve? > > > > > > > [[alternative HTML version deleted]] > > > > ______________________________________________ > > 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 > -- > %~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~% > Gavin Simpson [T] +44 (0)20 7679 5522 > ENSIS Research Fellow [F] +44 (0)20 7679 7565 > ENSIS Ltd. & ECRC [E] gavin.simpsonATNOSPAMucl.ac.uk > UCL Department of Geography [W] http://www.ucl.ac.uk/~ucfagls/cv/ > 26 Bedford Way [W] http://www.ucl.ac.uk/~ucfagls/ > London. WC1H 0AP. > %~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~% > > [[alternative HTML version deleted]] ______________________________________________ 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