Skip to content
Prev 343193 / 398513 Next

unable to use functions require DLL from package

On Aug 16, 2014, at 1:54 AM, Lotte de Vries wrote:
snipped all of your and my earlier material because you have included everything needed for an answer in your current question..
Yes, it is, although the answer will not be to your liking. You cannot mix old packages that are written in older versions of R with a current version of R. That is an ancient version of mgcv. The current version is 1.8-2. (I'm surprised you were able to install it, much less get it to load.) The usual advice in such instances is to figure out a combination of R, and all of the packages that existed at a particular time.

I was able to find : www.maths.bath.ac.uk/~sw283/simon/posum.html

If you look at the archives:

http://cran.r-project.org/src/contrib/Archive

....   to get an idea when mgcv 0.8-7 was current you find:

	mgcv_0.8-7.tar.gz	06-Nov-2002 09:12  	155K	 

The version of R that corresponds to that date might be:

	R-1.6.1.tgz	01-Nov-2002 12:22  	8.2M	 

The problem you may face however is that your operating system may not be compatible and you may need to find a machine that corresponds to that era of R-history. .... say Windows XP?

Might be easier to remedy the defects that exist in posum that prevent it from being a current package and working with the current mgcv. (I also checked to see if it had been submitted to CRAN in that era:

http://cran.r-project.org/bin/windows/contrib/1.7/

But it's not there.)

 I looked at the code and it does not require compilation. You can probably find current functions that can substitute for some of functionality implemented by broken code using the .C calls. For instance the current version of `cm.splinefun` in package:demography simply calls splinefun with method = 'hyman'
function (x, y = NULL, ...) 
{
    splinefun(x, y, method = "hyman")
}
<bytecode: 0x2e7bbd158>
<environment: namespace:demography>



--- 
David Winsemius
Alameda, CA, USA