[R-pkg-devel] Help with Package creation
Jennifer Bryan
jenny at stat.ubc.ca
Mon Sep 21 00:17:45 CEST 2015
Hi Mohammad,
You don’t really say but I’m guessing your error is when checking the package?
I think you should take the message at face value. It appears the randomForest package is not
available from the libraries R knows about at the time of whatever it is your doing. R CMD check
will not go out and install a dependency for you. install.packages() will do this, so maybe that
is what you’re thinking of.
— Jenny
> On Sep 20, 2015, at 7:37 AM, Mohammad Tanvir Ahamed via R-package-devel <r-package-devel at r-project.org> wrote:
>
>
> From: Mohammad Tanvir Ahamed <mashranga at yahoo.com>
> Subject: Help with Package creation
> Date: September 19, 2015 at 12:42:39 PM PDT
> To: "r-package-devel at r-project.org" <r-package-devel at r-project.org>
> Reply-To: Mohammad Tanvir Ahamed <mashranga at yahoo.com>
>
>
> 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 |
>
>
>
> ______________________________________________
> R-package-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel
More information about the R-package-devel
mailing list