-
Notifications
You must be signed in to change notification settings - Fork 761
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: contains a blank line #394
Comments
Could you provide a simple reproducible example? |
Sure. Here's a commit on my package that breaks
Undoing that fixes everything, of course (kevinushey/Kmisc@9441306)
Of course, a more local solution as far as unit testing would be preferred, but either that means the code in |
Ok - so the problem is only if there's a trailing empty line? |
Ok, so this probably requires some refactoring of |
(Argh. Sorry, deleted my comment by accident.) Basically, any blank line between fields will cause
and it is that blank line between fields, now generated, that causes it to fail. |
Fixed by #439 |
This caused an error: Installing g2chvc Error: contains a blank line when doing install_github() This seems to have been fixed March 2014 r-lib/devtools#394
Remove blank line from description (breaks install with packrat)
When attempting to install one of our packages with
install_github
, I get the error:From what I can see, it occurs because
devtools
adds some extraGitHub
-specific information to theDESCRIPTION
file, but thatDESCRIPTION
file may have more than one newline ending the file. Hence, a blank line is left between the oldDESCRIPTION
fields and the new material added bydevtools
.I think excessive final newlines should be stripped from the
DESCRIPTION
before modifying it, just to protect users from this error.The text was updated successfully, but these errors were encountered: