dirinla package installation error

I am trying to install the package dirinla from Bitbucket but getting an error below.

R version 4.0.5 (2021-03-31) -- "Shake and Throw"
Copyright (C) 2021 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

  Natural language support but running in an English locale

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

[Workspace loaded from ~/.RData]

> # install.packages("remotes")
> devtools::install_bitbucket("joaquin-martinez-minaya/dirinla", ref="master")
Error: Failed to install 'dirinla' from Bitbucket:
  JSON: EXPECTED value GOT "
> remotes::install_bitbucket("joaquin-martinez-minaya/dirinla", ref="master")
Error: Failed to install 'dirinla' from Bitbucket:
  JSON: EXPECTED value GOT "
> sessionInfo()
R version 4.0.5 (2021-03-31)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19042)

Matrix products: default

locale:
[1] LC_COLLATE=English_South Africa.1252  LC_CTYPE=English_South Africa.1252   
[3] LC_MONETARY=English_South Africa.1252 LC_NUMERIC=C                         
[5] LC_TIME=English_South Africa.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached):
 [1] httr_1.4.2          Biobase_2.50.0      pkgload_1.2.1      
 [4] jsonlite_1.7.2      carData_3.0-4       RcppParallel_5.1.4 
 [7] assertthat_0.2.1    stats4_4.0.5        cellranger_1.1.0   
[10] yaml_2.2.1          remotes_2.3.0       sessioninfo_1.1.1  
[13] pillar_1.6.1        lattice_0.20-44     glue_1.4.2         
[16] digest_0.6.27       colorspace_2.0-1    htmltools_0.5.1.1  
[19] pkgconfig_2.0.3     devtools_2.4.1      haven_2.4.1        
[22] purrr_0.3.4         flowCore_2.2.0      mvtnorm_1.1-1      
[25] scales_1.1.1        processx_3.5.2      openxlsx_4.2.3     
[28] Rtsne_0.15          rio_0.5.26          tibble_3.1.2       
[31] generics_0.1.0      car_3.0-10          usethis_2.0.1      
[34] ellipsis_0.3.2      cachem_1.0.5        pacman_0.5.1       
[37] withr_2.4.2         BiocGenerics_0.36.1 randomcoloR_1.1.0.1
[40] cli_2.5.0           readxl_1.3.1        magrittr_2.0.1     
[43] crayon_1.4.1        memoise_2.0.0       evaluate_0.14      
[46] ps_1.6.0            fs_1.5.0            fansi_0.4.2        
[49] nlme_3.1-152        MASS_7.3-54         forcats_0.5.1      
[52] foreign_0.8-81      CRPClustering_1.2   pkgbuild_1.2.0     
[55] tools_4.0.5         data.table_1.14.0   prettyunits_1.1.1  
[58] hms_1.1.0           lucid_1.8           lifecycle_1.0.0    
[61] matrixStats_0.58.0  stringr_1.4.0       S4Vectors_0.28.1   
[64] V8_3.4.2            munsell_0.5.0       zip_2.1.1          
[67] cluster_2.1.2       callr_3.7.0         compiler_4.0.5     
[70] rlang_0.4.11        grid_4.0.5          rmarkdown_2.8      
[73] testthat_3.0.2      cytolib_2.2.1       abind_1.4-5        
[76] DBI_1.1.1           curl_4.3.1          R6_2.5.0           
[79] RProtoBufLib_2.2.0  knitr_1.33          dplyr_1.0.6        
[82] fastmap_1.1.0       utf8_1.2.1          rprojroot_2.0.2    
[85] desc_1.3.0          stringi_1.6.2       parallel_4.0.5     
[88] Rcpp_1.0.6          vctrs_0.3.8         png_0.1-7          
[91] tidyselect_1.1.1    xfun_0.23 

Hi!,

Thanks for your interest in using the dirinla package.

It seems that the error is not only associated with dirinla package, but with the installation from git repositories:
https://forum.posit.co/t/devtools-install-github-error/19840/4

What I suggest from the moment is try to install from local, following next steps:

  1. Clone repository
  2. Decompress it.
  3. Opne dirinla.Rproj
  4. Execute:
setwd("dirinla")
devtools::document()
setwd("..")
devtools::install_local("dirinla", force = TRUE)
  1. R-package should have been installed.

Please, just let me know if it works.
Best,
Joaquín.

Thanks, it worked, no need to run devtools::document() because it load the package hence you get an error saying the package already in use. I appreciate the support :ok_hand: :ok_hand:

setwd("C:/Users/Desktop/dirinla/")
setwd("..")
devtools::install_local("dirinla", force = TRUE)
1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.