Open martabe opened 3 years ago
Hi Marta, I just checked on my Windows system on R 4.0.2 and I think your installation error via devtools::install_github("tpook92/HaploBlocker", subdir="pkg") is caused by R automatically installing an old version of RandomFieldsUtils. Our newest version of HaploBlocker requires RandomFieldsUtils 0.6.6 or higher (but only 0.5.3 is on CRAN). Please first install RandomFieldsUtils manually. You can do this by downloading the newest version from here (https://github.com/tpook92/HaploBlocker/blob/master/RandomFieldsUtils_0.6.6.tar.gz). And install locally (install.packages("RandomFieldsUtils_0.6.6.tar.gz, type="source"))
Installing via regular link from install.packages is a syntax I am not familiar with. I personally would recommend downloading and installing from a local directory. In any case, type="source" is only needed when the package is in .tar.gz format. For a zipped package this will lead to an error.
Hope this could answer this problem. Otherwise, please provide me with the exact line of code entered in your R console and the error message.
Best regards Torsten
Hi Torsten,
I tried with the new version of RandomFieldsUtils and version 1.6.03 of HaploBlocker and it worked, thanks!
In the failed attempts I was installing an older version of HaploBlocker so that I didn't have to update RandomFieldsUtils.
Also, I realised my wget
commands were not always downloading the correct file from GitHub (I was getting an html with a .zip or .tar.gz extension). My mistake.
So, I guess there were a couple things wrong in my procedure...
Thanks a lot for your help! Marta
Hi!
Can I ask you if you have tested installation in R version 4.0.4 (or any 4 version) in Windows? I cannot manage to install it, while it was working fine before upgrading R.
My sessionInfo:
I have Rtools40 installed and listed in PATH:
Installing with
devtools::install_github("tpook92/HaploBlocker", subdir="pkg")
has non zero exit status. Manual installation withinstall.packages("https://github.com/tpook92/HaploBlocker/blob/master/Old_version/HaploBlocker_1.5.8.zip", type = "source", repos = NULL)
fails with
Warning in read.dcf(file.path(pkgname, "DESCRIPTION"), c("Package", "Type")) : cannot open compressed file 'HaploBlocker/DESCRIPTION', probable reason 'No such file or directory' Error in read.dcf(file.path(pkgname, "DESCRIPTION"), c("Package", "Type")) : non posso aprire questa connessione (=cannot open this connection)
Do you have any suggestion on what could be wrong? Anything I could check?
Thanks a lot, Marta