[R] testing my package : unstated dependency to self in package tests
Servet Ahmet Çizmeli
Servet@Ahmet@C|zme|| @end|ng |rom USherbrooke@c@
Mon Feb 17 00:02:27 CET 2020
That worked. Thanks.
From: Michael Dewey <lists using dewey.myzen.co.uk>
Sent: Sunday, February 16, 2020 5:54 PM
To: Servet Ahmet Çizmeli <Servet.Ahmet.Cizmeli using USherbrooke.ca>; r-help using r-project.org <r-help using r-project.org>
Subject: Re: [R] testing my package : unstated dependency to self in package tests
When something similar happened to me I found it went away when I added
to the DESCRIPTION file. Whether this will work for you I have no idea.
On 16/02/2020 11:03, Servet Ahmet Çizmeli wrote:
> I am updating my CRAN package geoSpectral. I get the following Warning during R CMD check :
> * checking for unstated dependencies in �tests� ... WARNING
> 'library' or 'require' call not declared from: �geoSpectral�
> All the .R files I have under the testhat directory begin by :
> and there I call package functions directly (without the prefix geoSpectal:: )
> See https://github.com/cran/geoSpectral/blob/master/tests/testthat/Spectra_tests.R
> Searching the web, I found examples where the same Warning has been issued for some other packages. But in my case the package in question is my own package I am testing....
> Confused and at loss. Anyone with ideas?
> [[alternative HTML version deleted]]
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
[[alternative HTML version deleted]]
More information about the R-help