Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

package help index failing after load_all #67

Closed
vspinu opened this issue Apr 12, 2018 · 2 comments
Closed

package help index failing after load_all #67

vspinu opened this issue Apr 12, 2018 · 2 comments

Comments

@vspinu
Copy link
Contributor

vspinu commented Apr 12, 2018

Steps to reproduce with pkgload itself:

> devtools::load_all('path/to/pkgload')
...
> help(package = "pkgload", help_type = "text")
Error in is.character(topic) : object 'topic_str' not found
> traceback()
11: stop(e)
10: value[[3L]](cond)
9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
8: tryCatchList(expr, classes, parentenv, handlers)
7: tryCatch(if (missE) ...elt(i) else eval(cl.i, envir = envir), 
       error = function(e) {
           e$call <- cl.i
           stop(e)
       })
6: withCallingHandlers(tryCatch(if (missE) ...elt(i) else eval(cl.i, 
       envir = envir), error = function(e) {
       e$call <- cl.i
       stop(e)
   }), warning = function(w) {
       w$call <- cl.i
       w
   })
5: stopifnot(is.character(topic), length(topic) == 1)
4: dev_topic_parse(topic, dev_packages)
3: dev_topic_find(topic, dev_packages)
2: dev_help(topic_str, package_str)
1: help(package = "pkgload", help_type = "text")

Expected behavior:

> library(pkgload)
> help(package = "pkgload", help_type = "text")

		Information on packagepkgloadDescription:

Package:          pkgload
Title:            Simulate Package Installation and Attach
Version:          1.0.0
....
@vspinu
Copy link
Contributor Author

vspinu commented Oct 11, 2018

Thanks!

@jimhester
Copy link
Member

This isn't really a perfect fix, as we don't have all the indexes a fully installed package would have to populate the help, but at least now it does not error.

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

No branches or pull requests

2 participants