Nancy
Nancy

Reputation: 4109

install_github() error for existing package

I just put a package on github but am having trouble installing it using install_github(). The package is at https://github.com/nancyorgan/mapcalc

I've tried

install_github(repo = "mapcalc", username = "nancyorgan")
install_github("nancyorgan/mapcalc")
install_github(repo = "mapcalc", username = getOptions("nancyorgan"))

but the error I get is 'unable to find a non-generic version of function "initialize"'

I have devtools installed. Is there just a syntactical error? My package works fine when I install it from a local directory on my computer.

Upvotes: 1

Views: 336

Answers (1)

jdharrison
jdharrison

Reputation: 30445

You have your package as a sub directory of the github repository try:

devtools::install_github('nancyorgan/mapcalc/mapcalc')

this seemed to work for me althou I didnt try any of the package functionality.

Upvotes: 1

Related Questions