質問

I can see my package is installed with library(), but when I load the package from the library, I can't call any of the functions.

> install_github("pdfHarvester", "hansthompson")
> library(pdfHarvester)
> Convert
Error: object 'Convert' not found
> Parse_Tables
Error: object 'Convert' not found
役に立ちましたか?

解決

You need to make sure you package actually exports the functions you want to use. This is a package development issue - not an issue with install_github.

Note that your NAMESPACE file is empty: https://github.com/hansthompson/pdfHarvester/blob/master/NAMESPACE

It looks like you're using roxygen for your .R files. If you're using devtools for the package creation you need to use document() to generate your help file and populate the NAMESPACE file.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top