[R] Updating Package Fails: Help on How to Fix Needed

Duncan Murdoch murdoch.duncan at gmail.com
Fri Dec 11 20:05:28 CET 2015

On 11/12/2015 1:44 PM, Rich Shepard wrote:
>     Trying to update package pbkrtest failed because of a missing object in
> another namespace. Not having experienced this issue before now I don't know
> what to do to fix the problem. Here's the story:
> * installing *source* package ‘pbkrtest’ ...
> ** package ‘pbkrtest’ successfully unpacked and MD5 sums checked
> ** R
> ** data
> ** inst
> ** preparing package for lazy loading
> Warning: replacing previous import by ‘stats::sigma’ when loading ‘pbkrtest’
> Error : object ‘sigma’ is not exported by 'namespace:stats'
> ERROR: lazy loading failed for package ‘pbkrtest’
> * removing ‘/usr/lib/R/library/pbkrtest’
> * restoring previous ‘/usr/lib/R/library/pbkrtest’
> The downloaded source packages are in
>   	‘/tmp/RtmppHtiuJ/downloaded_packages’
> Updating HTML index of packages in '.Library'
> Making 'packages.html' ... done
> Warning message:
> In install.packages(update[instlib == l, "Package"], l, contriburl =
> contriburl,  :
>     installation of package ‘pbkrtest’ had non-zero exit status
>     Advice needed.

I don't see that.  You need to give more details:  I'd start with 
sessionInfo(), and the version number of the pbkrtest package that 
you're trying to install.  (If R is downloading it for you, 
available.packages()["pbkrtest",]  will give lots of useful information.)

Duncan Murdoch

More information about the R-help mailing list