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

Installation with R 3.6.x #306

Open
nmskhan opened this issue Mar 16, 2022 · 4 comments
Open

Installation with R 3.6.x #306

nmskhan opened this issue Mar 16, 2022 · 4 comments

Comments

@nmskhan
Copy link

nmskhan commented Mar 16, 2022

Hi
I was able to install RMINC successfully however, it says the no RMINC package available in R.
library(RMINC)
Error in library(RMINC) : there is no package called ‘RMINC’

installation information:
install_github("Mouse-Imaging-Centre/RMINC@develop"

  • , upgrade_dependencies = FALSE)
    Downloading GitHub repo Mouse-Imaging-Centre/RMINC@develop
    Skipping 1 packages not available: rjson
    ✔ checking for file ‘/private/var/folders/0c/qkvhvzjj4vg_sq54mf_0fkg00000gp/T/RtmpRPXlND/remotes15edb4c9f147a/Mouse-Imaging-Centre-RMINC-2d4f07d/DESCRIPTION’ ...
    ─ preparing ‘RMINC’: (398ms)
    ✔ checking DESCRIPTION meta-information ...
    ─ cleaning src
    ─ running ‘cleanup’
    ─ checking for LF line-endings in source and make files and shell scripts
    ─ checking for empty or unneeded directories
    Removed empty directory ‘RMINC/etc’
    ─ looking to see if a ‘data/datalist’ file should be added
    ─ building ‘RMINC_1.5.2.3.tar.gz’

ERROR: dependency ‘rjson’ is not available for package ‘RMINC’

  • removing ‘/Library/Frameworks/R.framework/Versions/3.6/Resources/library/RMINC’
    Error in action():
    ! class is absent but must be supplied.
    Run rlang::last_error() to see where the error occurred.
    Warning message:
    In i.p(...) :
    installation of package ‘/var/folders/0c/qkvhvzjj4vg_sq54mf_0fkg00000gp/T//RtmpRPXlND/file15edb2991bb9e/RMINC_1.5.2.3.tar.gz’ had non-zero exit status

I am not sure whether this is correctly installed. Please help me with how to fix this.
Thanks
Ned

@bcdarwin
Copy link
Member

Right now RMINC won't install 'out of the box' with R 3.x due to other libraries like 'rjson' having dropped support. You need to either install R 4.x (risky since RMINC's test suite isn't passing) or download older versions of rjson etc.

Here's a sessionInfo dump of the versions I have installed which could be turned into a shell command or Packrat file:

other attached packages:
[1] MRIcrotome_0.2.0 RMINC_1.5.3.0   

loaded via a namespace (and not attached):
 [1] progress_1.2.2    tidyselect_1.1.1  purrr_0.3.4       splines_3.6.3    
 [5] lattice_0.20-45   vctrs_0.3.8       generics_0.1.1    htmltools_0.5.2  
 [9] yaml_2.2.2        utf8_1.2.2        rlang_1.0.0       pillar_1.6.5     
[13] nloptr_2.0.0      later_1.3.0       glue_1.6.1        withr_2.4.3      
[17] DBI_1.1.2         rappdirs_0.3.3    lifecycle_1.0.1   data.tree_1.0.0  
[21] visNetwork_2.1.0  htmlwidgets_1.5.4 fastmap_1.1.0     httpuv_1.6.5     
[25] batchtools_0.9.15 fansi_1.0.2       Rcpp_1.0.8        xtable_1.8-4     
[29] backports_1.4.1   promises_1.2.0.1  checkmate_2.0.0   jsonlite_1.7.3   
[33] mime_0.12         lme4_1.1-27.1     brew_1.0-6        rjson_0.2.20     
[37] hms_1.1.1         digest_0.6.29     stringi_1.7.6     dplyr_1.0.7      
[41] shiny_1.7.1       grid_3.6.3        cli_3.1.1         tools_3.6.3      
[45] magrittr_2.0.2    base64url_1.4     tibble_3.1.6      crayon_1.4.2     
[49] tidyr_1.1.4       pkgconfig_2.0.3   MASS_7.3-55       ellipsis_0.3.2   
[53] Matrix_1.4-0      gridBase_0.4-7    data.table_1.14.2 prettyunits_1.1.1
[57] assertthat_0.2.1  minqa_1.2.4       R6_2.5.1          boot_1.3-28      
[61] nlme_3.1-155      compiler_3.6.3

@nmskhan
Copy link
Author

nmskhan commented Mar 16, 2022

ok, Thanks, Let me try your suggestions. Appreciate your comments.

@bcdarwin
Copy link
Member

bcdarwin commented Mar 18, 2022

Here's a packrat file that you can packrat::unbundle(<bundle_path>, where=<somewhere>) to create an installation: packratting-2022-03-18.tar.gz (just dependencies); packratting-2022-03-18.tar.gz (installs RMINC). [update: apparently they are both only dependencies, so you need to install RMINC via devtools]

It doesn't include the sources so is just a few text files you can easily inspect.

@bcdarwin bcdarwin changed the title Installation Error Installation with R 3.6.x Mar 18, 2022
@nmskhan
Copy link
Author

nmskhan commented Apr 3, 2022

Thank you for more help. I will check it out.

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

2 participants