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 with installation #4

Open
daniel-manrique opened this issue Feb 3, 2022 · 6 comments
Open

Problem with installation #4

daniel-manrique opened this issue Feb 3, 2022 · 6 comments

Comments

@daniel-manrique
Copy link

Hello,

I am eager to use the package. I am getting this error when installing. Tried many things. I would appreciate it if you can provide some insight. Regards

devtools::install_github('michael-franke/bayes_mixed_regression_tutorial/faintr',

  •                      build_vignettes = TRUE)
    

Downloading GitHub repo michael-franke/bayes_mixed_regression_tutorial@HEAD
√ checking for file 'C:\Users\danie\AppData\Local\Temp\RtmpS8Dfvr\remotes27b0ad44117\michael-franke-bayes_mixed_regression_tutorial-74178c3\faintr/DESCRIPTION'

  • preparing 'faintr':
    √ checking DESCRIPTION meta-information ...
  • installing the package to build vignettes
    √ creating vignettes (49.8s)
  • checking for LF line-endings in source and make files and shell scripts
  • checking for empty or unneeded directories
    WARNING: Removing directory 'faintr/Meta' which should only occur in an
    installed package
    Omitted 'LazyData' from DESCRIPTION
  • building 'faintr_0.0.8.tar.gz'

Installing package into ‘C:/Users/danie/Documents/R/win-library/4.1’
(as ‘lib’ is unspecified)

  • installing source package 'faintr' ...
    ** using staged installation
    ** R
    ** inst
    ** byte-compile and prepare package for lazy loading
    ** help
    *** installing help indices
    converting help for package 'faintr'
    finding HTML links ... done
    compare_groups html
    faintr-package html
    finding level-2 HTML links ... done

Rd warning: C:/Users/danie/AppData/Local/Temp/RtmpW61zKl/R.INSTALL5b681234443/faintr/man/faintr-package.Rd:18: missing link 'post_cells'
get_factor_information html
print.faintCompare html
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
*** arch - i386
Error: package or namespace load failed for 'faintr' in library.dynam(lib, package, package.lib):
DLL 'cli' not found: maybe not installed for this architecture?
Error: loading failed
Execution halted
*** arch - x64
ERROR: loading failed for 'i386'

  • removing 'C:/Users/danie/Documents/R/win-library/4.1/faintr'
    Warning in i.p(...) :
    installation of package ‘C:/Users/danie/AppData/Local/Temp/RtmpS8Dfvr/file27b020724791/faintr_0.0.8.tar.gz’ had non-zero exit status
@michael-franke
Copy link
Owner

Try the following:

  • install from a terminal / console (not RStudio)
  • install without the option "build_vignettes = TRUE"

@daniel-manrique
Copy link
Author

Hello Michael,

I appreciate your answer. I tried as you suggested. I still got the error in the R console:

install_github(repo = "michael-franke/bayes_mixed_regression_tutorial", subdir = "faintr")

Downloading GitHub repo michael-franke/bayes_mixed_regression_tutorial@HEAD

checking for file 'C:\Users\danie\AppData\Local\Temp\RtmpeKoWTS\remotesc842b83366c\michael-franke-bayes_mixed_regression_tutorial-74178c3\faintr/DESCRIPTION' ...

checking for file 'C:\Users\danie\AppData\Local\Temp\RtmpeKoWTS\remotesc842b83366c\michael-franke-bayes_mixed_regression_tutorial-74178c3\faintr/DESCRIPTION' ...

√ checking for file 'C:\Users\danie\AppData\Local\Temp\RtmpeKoWTS\remotesc842b83366c\michael-franke-bayes_mixed_regression_tutorial-74178c3\faintr/DESCRIPTION'

  • preparing 'faintr':
    checking DESCRIPTION meta-information ...

checking DESCRIPTION meta-information ...

√ checking DESCRIPTION meta-information

  • checking for LF line-endings in source and make files and shell scripts

  • checking for empty or unneeded directories

    WARNING: Removing directory 'faintr/Meta' which should only occur in an
    installed package

    Omitted 'LazyData' from DESCRIPTION

  • building 'faintr_0.0.8.tar.gz'

Installing package into ‘C:/Users/danie/Documents/R/win-library/4.1’
(as ‘lib’ is unspecified)

  • installing source package 'faintr' ...
    ** using staged installation
    ** R
    ** byte-compile and prepare package for lazy loading
    ** help
    *** installing help indices
    converting help for package 'faintr'
    finding HTML links ... done
    compare_groups html
    faintr-package html
    finding level-2 HTML links ... done

Rd warning: C:/Users/danie/AppData/Local/Temp/RtmpSCZita/R.INSTALL50f060d11476/faintr/man/faintr-package.Rd:18: missing link 'post_cells'
get_factor_information html
print.faintCompare html
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
*** arch - i386
Error: package or namespace load failed for 'faintr' in library.dynam(lib, package, package.lib):
DLL 'cli' not found: maybe not installed for this architecture?
Error: loading failed
Execution halted
*** arch - x64
ERROR: loading failed for 'i386'

  • removing 'C:/Users/danie/Documents/R/win-library/4.1/faintr'
    Warning message:
    In i.p(...) :
    installation of package ‘C:/Users/danie/AppData/Local/Temp/RtmpeKoWTS/filec8445174fac/faintr_0.0.8.tar.gz’ had non-zero exit status

@michael-franke
Copy link
Owner

michael-franke commented Feb 4, 2022 via email

@PHJT003
Copy link

PHJT003 commented Feb 25, 2022

Dear @michael-franke,
I have similar issues when I try to install your package.

I opened the R console – not RStudio – as administrator and run the code below, setting the arguments explicitly:

library(devtools)
devtools::install_github(
  repo = "michael-franke/bayes_mixed_regression_tutorial/faintr",  
  build_vignettes = FALSE,
  dependencies = TRUE)

Unfortunately, this does not work and I get the non-zero exit status error.

Installing package into ‘C:/Users/Valerio/Documents/R/win-library/4.1’
(as ‘lib’ is unspecified)
* installing *source* package 'faintr' ...
** using staged installation
** R
** byte-compile and prepare package for lazy loading
Error in completeSubclasses(classDef2, class1, obj, where) : 
  trying to get slot "subclasses" from an object of a basic class ("NULL") with no slots
Error: .onLoad failed in loadNamespace() for 'dbplyr', details:
  call: setClass(cl, contains = c(prevClass, "VIRTUAL"), where = where)
  error: error in contained classes ("character") for class "ident"; class definition removed from 'dbplyr'
Execution halted
ERROR: lazy loading failed for package 'faintr'
* removing 'C:/Users/Valerio/Documents/R/win-library/4.1/faintr'
Warning message:
In i.p(...) :
  installation of package ‘C:/Users/Valerio/AppData/Local/Temp/RtmpgPSRfl/file3f3c40bb192d/faintr_0.0.8.tar.gz’ had non-zero exit status

Running the code in RStudio produces the same error.

I would love to go through your tutorial, but I am stuck here. Is there anything else I could do to fix this?
Thanks for your time and help.

Best wishes,
Valerio

P.S.: I am attaching the output of the console, which I captured with the sink() function. For some reason, the non-zero exit status error (cf. above) could not be written, so I had to copy/paste it from the terminal. The file also contains some additional information, such as the R version I use.
This is the file: install-faintr.txt.

@michael-franke
Copy link
Owner

michael-franke commented Feb 27, 2022 via email

@PHJT003
Copy link

PHJT003 commented Feb 28, 2022

Hi Michael,
thanks for your reply.
I wanted to go through the tutorial first, then possibly use it on some of my data.

However, I had not thought about this:

[...] you might resort to just copy-pasting the few functions in these two files:
https://github.com/michael-franke/bayes_mixed_regression_tutorial/tree/master/faintr/R
and work with them locally, outside of a package.

Thanks for the suggestion, I will try that!

Best wishes,
Valerio

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

No branches or pull requests

3 participants