I have a function that calls par, it has worked nicely before. Now I get the following error: Error in par(mar = c(5.1, 4.1, 5.1, 2.1)) : there is no .Internal function 'par' Can anyone give me a hint so solve this problem? Kim Kim Pilegaard Professor Atmospheric Environment DTU Environment Technical University of Denmark [dtu.dk/~/media/DTU_Generelt/Andet/DTU_email_logo_01.gif] Department of Environmental Engineering Milj?vej 2800 Kgs. LyngbyDenmark Mobile: +45 4025 6839 kipi at env.dtu.dk<mailto:kipi at env.dtu.dk> env.dtu.dk<env.dtu.dk> [[alternative HTML version deleted]]
On 27.01.2016 10:56, Kim Pilegaard wrote:> I have a function that calls par, it has worked nicely before. Now I get the following error: > > Error in par(mar = c(5.1, 4.1, 5.1, 2.1)) : > there is no .Internal function 'par' > > Can anyone give me a hint so solve this problem?Your R is broken... Try to reinstall. Best, Uwe Ligges> Kim > > > Kim Pilegaard > Professor > Atmospheric Environment > DTU Environment > Technical University of Denmark > [dtu.dk/~/media/DTU_Generelt/Andet/DTU_email_logo_01.gif] > Department of Environmental Engineering > Milj?vej > 2800 Kgs. LyngbyDenmark > Mobile: +45 4025 6839 > kipi at env.dtu.dk<mailto:kipi at env.dtu.dk> > env.dtu.dk<env.dtu.dk> > > > > > [[alternative HTML version deleted]] > > > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >
Did you somehow get a copy of the Splus par function into your R workspace? Use the conflicts() function to see if you have something masking par. Bill Dunlap TIBCO Software wdunlap tibco.com On Wed, Jan 27, 2016 at 1:56 AM, Kim Pilegaard <kipi at kt.dtu.dk> wrote:> I have a function that calls par, it has worked nicely before. Now I get > the following error: > > Error in par(mar = c(5.1, 4.1, 5.1, 2.1)) : > there is no .Internal function 'par' > > Can anyone give me a hint so solve this problem? > > Kim > > > Kim Pilegaard > Professor > Atmospheric Environment > DTU Environment > Technical University of Denmark > [dtu.dk/~/media/DTU_Generelt/Andet/DTU_email_logo_01.gif] > Department of Environmental Engineering > Milj?vej > 2800 Kgs. LyngbyDenmark > Mobile: +45 4025 6839 > kipi at env.dtu.dk<mailto:kipi at env.dtu.dk> > env.dtu.dk<env.dtu.dk> > > > > > [[alternative HTML version deleted]] > > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >[[alternative HTML version deleted]]
On 27/01/2016 4:56 AM, Kim Pilegaard wrote:> I have a function that calls par, it has worked nicely before. Now I get the following error: > > Error in par(mar = c(5.1, 4.1, 5.1, 2.1)) : > there is no .Internal function 'par' > > Can anyone give me a hint so solve this problem?You have a copy of par() from some earlier version of R. Perhaps you called edit() on it and saved a copy? The current one doesn't call .Internal. Duncan Murdoch
Hi Kim, The only thing that I can think of is that some packages that were previously loaded automatically may now have to be loaded explicitly. Have you tried adding: require(graphics) to your code? Jim On Wed, Jan 27, 2016 at 8:56 PM, Kim Pilegaard <kipi at kt.dtu.dk> wrote:> I have a function that calls par, it has worked nicely before. Now I get > the following error: > > Error in par(mar = c(5.1, 4.1, 5.1, 2.1)) : > there is no .Internal function 'par' > > Can anyone give me a hint so solve this problem? > > Kim > > > Kim Pilegaard > Professor > Atmospheric Environment > DTU Environment > Technical University of Denmark > [dtu.dk/~/media/DTU_Generelt/Andet/DTU_email_logo_01.gif] > Department of Environmental Engineering > Milj?vej > 2800 Kgs. LyngbyDenmark > Mobile: +45 4025 6839 > kipi at env.dtu.dk<mailto:kipi at env.dtu.dk> > env.dtu.dk<env.dtu.dk> > > > > > [[alternative HTML version deleted]] > > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >[[alternative HTML version deleted]]