[R] testing my package : unstated dependency to self in package tests

Jeff Newmiller jdnewm|| @end|ng |rom dcn@d@v|@@c@@u@
Sun Feb 16 18:22:13 CET 2020


I think the Posting Guide would call this the wrong mailing list for this question: should be on R-package-devel.

On February 16, 2020 3:03:55 AM PST, "Servet Ahmet Çizmeli" <Servet.Ahmet.Cizmeli using USherbrooke.ca> 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 :
>library(geoSpectral)
>library(testthat)
>
>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?
>regards
>Servet
>
>	[[alternative HTML version deleted]]

-- 
Sent from my phone. Please excuse my brevity.



More information about the R-help mailing list