I think your immediate problem is that you are asking this particular question in the wrong forum. It appears that you are following instructions (in a book? a class?) and you need to direct your questions to the author of those instructions.
You may find it helpful to know: a) The load function does not work on R source code files (.R) but on R data files (.rda or .RData). b) You can (and most likely should) open .R files in the text editor of your choice and start reading. c) There is a Posting Guide for this mailing list mentioned at the bottom of this and every other email from this list. d) There is a well-written Introduction to R pdf document supplied with the R software. --------------------------------------------------------------------------- Jeff Newmiller The ..... ..... Go Live... DCN:<jdnew...@dcn.davis.ca.us> Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/Batteries O.O#. #.O#. with /Software/Embedded Controllers) .OO#. .OO#. rocks...1k --------------------------------------------------------------------------- Sent from my phone. Please excuse my brevity. Christofer Bogaso <bogaso.christo...@gmail.com> wrote: >Hello all, > >I was trying to load a .r file using source() and load() functions. >Although I could be able to load the codes (mainly few user defined >functions) written in that .r. file correctly, however getting >following error: > >> source("D:/Book Code.r") >Error in sys.call(sys.parent()) : node stack overflow > > >> load("D:/Book Code.r") >Error: bad restore file magic number (file may be corrupted) -- no data >loaded >In addition: Warning message: >file ‘NG Book Code.r’ has magic number 'Pos_T' > Use of save versions prior to 2 is deprecated > >What is the possible problem? > >Thanks and regards, > >______________________________________________ >R-help@r-project.org mailing list >https://stat.ethz.ch/mailman/listinfo/r-help >PLEASE do read the posting guide >http://www.R-project.org/posting-guide.html >and provide commented, minimal, self-contained, reproducible code. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.