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

Error: Does not appear to be an R package (no DESCRIPTION) #370

Closed
jeroen opened this issue May 21, 2019 · 3 comments
Closed

Error: Does not appear to be an R package (no DESCRIPTION) #370

jeroen opened this issue May 21, 2019 · 3 comments

Comments

@jeroen
Copy link
Member

jeroen commented May 21, 2019

When calling install_deps() and one of the dependencies already has a dev version installed, we regularly this error:

remotes::install_deps(dependencies = TRUE, upgrade = TRUE)

Screen Shot 2019-05-21 at 10 27 42 AM

Looks like the DESCRIPTION file of the installed dependency package contains this:

Maintainer: Jeroen Ooms <jeroen@berkeley.edu>
RemoteType: local
RemoteUrl:
        /private/var/folders/hp/fg4q7m353d91v9mgm4d1stvh0000gn/T/RtmpJkrZ7F/magick_2.0.9000.tar.gz
Built: R 3.6.0; x86_64-apple-darwin15.6.0; 2019-05-20 22:00:37 UTC; unix

I'm not sure how that RemoteUrl got in there but that file no longer exists.

@gaborcsardi
Copy link
Member

This is probably an issue with tar: #282

@jeroen
Copy link
Member Author

jeroen commented May 21, 2019

I don't think this is the problem.

I think the issue is that when remotes::install_local() installs a source package tar.gz, it records the source package file as the RemoteUrl in the installed DESCRIPTION. However that source package might no longer be available when remotes tries to upgrade the package later on.

@gaborcsardi
Copy link
Member

Oh, OK. Yes, that should tryCatch() I guess.

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