This question is related to this: when you are writing a package, how to specify a dependency (either in Imports
or Depends
) on an existing R package which is not on CRAN.
I am writing an R package that imports SparkR
, which is not in CRAN anymore (it is delivered with Spark in the R folder). I have tried adding the GitHub link to http://github.com/apache/spark/tree/master/R/pkg in the Additional_repositories
field of my DESCRIPTION
file, with no luck since the R CMD commands (install, check, etc) keep complaining that SparkR
could not be found. The same problem has been discussed in this post. In my case, my package is also heavily dependent on SparkR to move it to Suggests
.
Could you please suggest an appropriate way to fix this, instead of just assume the SparkR folder already exists in the user's R library folder.
Thanks