Help with Package creation

Mohammad Tanvir Ahamed mashranga at yahoo.com
Sat Sep 19 21:42:39 CEST 2015


Hello ,

I am new in R package built. 

I want to install one package (randomForest) that will install automatically while my package(myPack) will install. 
I am using R studio to built. 

My Description file is : 

Package: myPack
Type: Package
Title: What the Package Does (Title Case)
Version: 0.1
Date: 2015-09-19
Author: Who wrote it
Maintainer: Who to complain to <yourfault at somewhere.net>
Description: More about what it does (maybe more than one line)
License: What license is it under?
Depends: R
Imports: randomForest

LazyData: TRUE 

------------------------------------------------------------------------------------

But it shows me a error ...



Updating myPack documentation
Loading myPack
Error in (function (dep_name, dep_ver = NA, dep_compare = NA)  : 
  Dependency package randomForest not available.
Calls: suppressPackageStartupMessages ... <Anonymous> -> load_all -> load_imports -> mapply -> <Anonymous>
Execution halted


Exited with status 1.


------------------------------------------------------------------------------------

Any help regarding this problem will appreciated . 
Thank you . 


Tanvir Ahamed 
Göteborg, Sweden  |



More information about the R-package-devel mailing list