Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem during install #19

Open
fuxj opened this issue Jan 22, 2016 · 8 comments
Open

Problem during install #19

fuxj opened this issue Jan 22, 2016 · 8 comments

Comments

@fuxj
Copy link

fuxj commented Jan 22, 2016

Hi All,

When I install, I get the erro information like this:

Error in unloadNamespace(package) :
namespace ‘Rcpp’ is imported by ‘scales’, ‘reshape2’, ‘plyr’, ‘minqa’ so cannot be unloaded
Error in library(pkg, character.only = TRUE, logical.return = TRUE, lib.loc = lib.loc, :
Package ‘Rcpp’ version 0.12.2 cannot be unloaded
ERROR: lazy loading failed for package ‘RRegrs’

  • removing ‘/Users/fuxianjun/Library/R/3.2/library/RRegrs’

How can I resolve it?

Any advice would be greatly appreciated.

Xianjun

@cafernandezlo
Copy link

hi,

please update R and related packages before trying to install RRegrs. In the DESCRIPTION file, lazy load is set to true.

@fuxj
Copy link
Author

fuxj commented Jan 25, 2016

Hi Carlos,

Many thanks for your comments. I tried updated the R and all the packages:
platform x86_64-apple-darwin13.4.0
arch x86_64
os darwin13.4.0
system x86_64, darwin13.4.0
status
major 3
minor 2.3
year 2015
month 12
day 10
svn rev 69752
language R
version.string R version 3.2.3 (2015-12-10)
nickname Wooden Christmas-Tree

But the errors remain appeared like this:

  • installing source package ‘RRegrs’ ...
    ** R
    ** inst
    ** tests
    ** preparing package for lazy loading
    Note: the specification for S3 class “family” in package ‘MatrixModels’ seems equivalent to one from package ‘lme4’: not turning on duplicate class definitions for this class.
    Error in unloadNamespace(package) :
    namespace ‘Rcpp’ is imported by ‘scales’, ‘reshape2’, ‘plyr’, ‘minqa’ so cannot be unloaded
    Error in library(pkg, character.only = TRUE, logical.return = TRUE, lib.loc = lib.loc, :
    Package ‘Rcpp’ version 0.12.2 cannot be unloaded
    ERROR: lazy loading failed for package ‘RRegrs’
  • removing ‘/Users/fuxianjun/Library/R/3.2/library/RRegrs’

So could you please inform me where the problem lie.

Best,

Xianjun

@cafernandezlo
Copy link

Dear Xianjun,

I performed a clean install of RRegrs without problems using the README steps, it seems that this is not a problem directly related with the RRegrs package installation. So please, try to perform a clean install.

R version 3.2.3 (2015-12-10) -- "Wooden Christmas-Tree"
Copyright (C) 2015 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin13.4.0 (64-bit)

RRegrs 0.0.5

RStudio-0.99.491

@fuxj
Copy link
Author

fuxj commented Jan 28, 2016

Dear Carlos,
I really appreciate your suggestion and help. I am sorry but I tried but failed yet. Maybe something wrong with my system. I will continue to try and find out where it wrong.
Thanks again,
Best,
Xianjun

@egonw
Copy link

egonw commented Jan 28, 2016

Xianjun, can you maybe have a look at this similar report: r-lib/devtools#886

There they also have trouble with unloading Rcpp... does that look similar to you?

That report suggests we may want to play the order in which we depend/require packages.

@fuxj
Copy link
Author

fuxj commented Jan 29, 2016

Hi Egon,

Many thinks, I will look and try.

Best

@egonw
Copy link

egonw commented Feb 1, 2016

For the next release, we may want to import specific methods, rather than full packages. See issue #4

@tswaggy007
Copy link

I just went to the packages tab and clicked update. Selected all suggested updates and updated all and viola it worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants