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

Addin does not appear when installing package with devtools::install #2214

Closed
Toniiiio opened this issue Apr 21, 2020 · 1 comment
Closed

Comments

@Toniiiio
Copy link

Toniiiio commented Apr 21, 2020

I just started a new package and when i tried to install it at work with devtools::install the addin is not listed in the "addins list" in Rstudio.

From what i see it might not only be a problem in my package but is also depend on the installation method i choose:

devtools::install_github() works:

devtools::install_github("Timag/code2R")
library(code2r)

devtools::install() does not:

remove.packages("code2r")
tmp <- tempfile()
download.file(url = "https://github.com/Timag/code2R/archive/master.zip", destfile = tmp)
unzip(tmp, exdir = "code2r")
devtools::install("code2r/code2r-master")
library(code2r)

Sitenote:

In the second step, the error:

Error in eapply(pkgload::ns_env(pkg$package), force, all.names = TRUE) :
cannot open file 'C:/Users/User11/Documents/R/win-library/3.6/code2r/R/code2r.rdb': No such file or directory

might appear which goes away after restarting rstudio. I will inspect that tomorrow.

Expected output:

image

@Toniiiio Toniiiio changed the title Addin does not appear for devtools::install Addin does not appear when installing package with devtools::install Apr 21, 2020
@jimhester
Copy link
Member

I don't think this is a bug in devtools.

This sort of question is a better fit for https://community.rstudio.com. Do you mind asking it over there? (You might want to read https://www.tidyverse.org/help/ first to maximise your chances of getting a good answer)

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