Hi all, I have issues using some basic functions in R such as these ones :> pp.test(R) (where is a vector of returns)Error in .C("R_approx", as.double(x), as.double(y), as.integer(nx), xout as.double(xout), : C symbol name "R_approx" not in DLL for package "base">boxcox(reg,plotit=T) (where reg is an lm object)Error in .C("spline_coef", method = as.integer(method), n = as.integer(nx), : C symbol name "spline_coef" not in DLL for package "base" as I do miss some symbol names. How can I overcome this serious problem ? -- View this message in context: http://www.nabble.com/unable-to-use-functions-require-DLL-from-package-%22base%22-tp17086783p17086783.html Sent from the R help mailing list archive at Nabble.com.
Prof Brian Ripley
2008-May-06 21:25 UTC
[R] unable to use functions require DLL from package "base"
I suspect you have more than one version of R installed and are mixing them up. Those symbols have been in package stats for quite a while. Try starting R with --vanilla, and if that works, clean out your startup files (see ?Startup). If not, remove all your R installations and reinstall R 2.7.0 (or R-patched). On Tue, 6 May 2008, A.N. wrote:> > Hi all, > > I have issues using some basic functions in R such as these ones : > >> pp.test(R) (where is a vector of returns) > Error in .C("R_approx", as.double(x), as.double(y), as.integer(nx), xout > as.double(xout), : > C symbol name "R_approx" not in DLL for package "base" > >> boxcox(reg,plotit=T) (where reg is an lm object) > Error in .C("spline_coef", method = as.integer(method), n = as.integer(nx), > : > C symbol name "spline_coef" not in DLL for package "base" > > as I do miss some symbol names. > > How can I overcome this serious problem ? > > > -- > View this message in context: http://www.nabble.com/unable-to-use-functions-require-DLL-from-package-%22base%22-tp17086783p17086783.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help at 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. >-- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
Thanks, I had indeed several versions of R and removed the older ones and it worked. I suspect you have more than one version of R installed and are mixing them up. Those symbols have been in package stats for quite a while. Try starting R with --vanilla, and if that works, clean out your startup files (see ?Startup). If not, remove all your R installations and reinstall R 2.7.0 (or R-patched). -- View this message in context: http://www.nabble.com/unable-to-use-functions-require-DLL-from-package-%22base%22-tp17086783p17101073.html Sent from the R help mailing list archive at Nabble.com.