Skip to content
This repository has been archived by the owner on Feb 13, 2020. It is now read-only.

Error after using Check() #241

Closed
ghost opened this issue Nov 17, 2015 · 3 comments
Closed

Error after using Check() #241

ghost opened this issue Nov 17, 2015 · 3 comments

Comments

@ghost
Copy link

ghost commented Nov 17, 2015

I tried creating the same foo package but I got an error after adding test_fBind.R. Error looked as follows


** Examples

fbind(iris$Species[c(1, 51, 101)], PlantGrowth$group[c(1, 11, 21)])
Error: could not find function "fbind"
Execution halted

  • checking for unstated dependencies in 'tests' ... OK
  • checking tests ...
    Running 'testthat.R' OK
  • DONE
    Status: 1 ERROR

See
'C:/Users/HP/Desktop/Demo/foo/foofactors.Rcheck/00check.log'
for details.

Error: Command failed (1)
In addition: Warning message:
@export [fbind.R#11]: may only span a single line
Execution halted

Exited with status 1.


Any suggestions are welcome.

Thanks.

@jennybc
Copy link
Member

jennybc commented Nov 17, 2015

I've already reported this to RStudio:

https://support.rstudio.com/hc/communities/public/questions/205901678-Too-many-newlines-in-roxygen-comments?locale=en-us

Get rid of the empty line between #' @export and #' @examples. That should fix the warning.

But you've got bigger problems. I think you need to run document() so that fbind() is listed as an exported function in the NAMESPACE.

@jennybc
Copy link
Member

jennybc commented Nov 17, 2015

But I can't reproduce that warning about the extra line now? That is, I can have that line there and NOT get a warning.

@ghost
Copy link
Author

ghost commented Nov 17, 2015

I tried doing as suggested by you. It worked fine for me (no warnings and errors)
:)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant