gatk icon indicating copy to clipboard operation
gatk copied to clipboard

Update hmmUrl in install_R_packages.R

Open eholdmore opened this issue 1 year ago • 0 comments

Bug Report

Affected tool(s) or class(es)

In the tutorial "(How to part I) Sensitively detect copy ratio alterations and allelic segments", users are asked to install R components using install_R_packages.R.

Affected version(s)

Latest public release version [4.5.0.0]

Description

Running the script with Rscript install_R_packages.R results in the following error:

Error in download.file(p, destfile, method, mode = "wb", ...) : cannot open URL 'http://cran.r-project.org/src/contrib/HMM_1.0.tar.gz' In addition: Warning message: In download.file(p, destfile, method, mode = "wb", ...) : cannot open URL 'http://cran.r-project.org/src/contrib/HMM_1.0.tar.gz': HTTP status was '404 Not Found'

This can be fixed by changing line 35 of install_R_packages.R from hmmUrl = "http://cran.r-project.org/src/contrib/HMM_1.0.tar.gz" to hmmUrl = "http://cran.r-project.org/src/contrib/HMM_1.0.1.tar.gz".

The script runs as expected once this change is made.

Steps to reproduce

Run Rscript install_R_packages.R

Expected behavior

Successfully installs all necessary R packages with the correct versions.

Actual behavior

Fails to install the 'HMM' package.

eholdmore avatar Jan 02 '24 14:01 eholdmore