Hello Dears,
I was trying to download a GitHab R package located at https://github.com/Zhangxf-ccnu/DiffGraph
but unfortunately I could not mange to do so. It would a great help if some could give me some tips to how to download and install to my R studio. Here below is the code I tried and warnings message.
Thank you so much for your help!
> library(devtools)
> ulr = "https://github.com/Zhangxf-ccnu/DiffGraph"
> download.packages(pkgs = "DiffGraph",destdir = getwd(),
> repos = ulr, type = "source",
> method = "internal")
>
>
> Warning: unable to access index for repository https://github.com/Zhangxf-ccnu/DiffGraph/src/contrib:
> scheme not supported in URL 'https://github.com/Zhangxf-ccnu/DiffGraph/src/contrib/PACKAGES'
> Warning in download.packages(pkgs = "DiffGraph", destdir = getwd(), repos = ulr, :
> no package ‘DiffGraph’ at
The url you linked contains the following instructions:
Install the DiffGraph pacakge:
Download the package source from GitHub - Zhangxf-ccnu/DiffGraph: v1
and then install the package using the following command:
install.packages("path/DiffGraph_1.1.1.tar.gz", type = "source")
where "path" is the path where the "DiffGraph_1.1.1.tar.gz" is located.
I have download and saved to my working directory and did the installation as follow.
install.packages("D:/Users/AB/Documents/ab/DiffGraph_1.1.1.tar.gz", type = "source")
However still getting this warning
Warning in install.packages :
package ‘D:/Users/AB/Documents/ab/DiffGraph_1.1.1.tar.gz’ is not available for this version of R
A version of this package for your version of R might be available elsewhere,
see the ideas at https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages
I am now using the new R version (4.0.3). However, I also tried it with R version 4.0.2. The problem is the same. I am not sure what version is suitable for this package and haven't seen any specifications.