Skip to content

[R-pkg-devel] dependencies

4 messages · Cathy Lee Gierke, Bryan Hanson, Dirk Eddelbuettel

#
Hi, I'm stuck.  I am using a function called col_concat from the package
{assertr}.  But when I list it as a dependency, either by

import(assertr)

or

importFrom("assertr", "col_concat")

-----------

I get this error message:

* checking package dependencies ... ERROR

Namespace dependency not required: ?assertr?

See section ?The DESCRIPTION file? in the ?Writing R Extensions?

manual.

* DONE

Status: 1 ERROR
?------------
And when I take it out, I get a complaint that col_concat has no global
definition.

What???

Thanks,
?
Cathy Lee Gierke
#
Edit your DESCRIPTION file to include

imports: assertr

That?s why you get the "not required" message.

Bryan
#
Thanks Bryan.  All of my imports are in the namespace.  Can you tell me why
this one should be in the description file?

Cathy Lee Gierke


*?Darkness cannot drive out darkness: only light can do that. Hate cannot
drive out hate: only love can do that.? *
*?The arc of the moral universe is long, but it bends towards justice.?*
*?Nothing in the world is more dangerous than sincere ignorance and
conscientious stupidity.? *
*?Never forget that everything Hitler did in Germany was legal.?   *
*?Forgiveness is not an occasional act, it is a constant attitude.? *
*?Injustice anywhere is a threat to justice everywhere.?  *

? Martin Luther King Jr.

<http://www.goodreads.com/author/show/23924.Martin_Luther_King_Jr_>
On Tue, Nov 21, 2017 at 7:19 PM, Bryan Hanson <hanson at depauw.edu> wrote:

            

  
  
#
On 21 November 2017 at 19:20, Cathy Lee Gierke wrote:
| Thanks Bryan.  All of my imports are in the namespace.  Can you tell me why
| this one should be in the description file?

Because you need an entry in the DESCRIPTION file _and_ an entry in NAMESPACE.

Dirk