Devtools: Error at first installation with install_github

Created on 24 Jan 2019  路  6Comments  路  Source: r-lib/devtools

I try to install a package form GitHub using devtools

library(devtools)
install_github("kamapu/spatialist")

and got an error message

Error in read.dcf(path) : 
Found continuation line starting '  person("Miguel", "A ...' at begin of record.

If I use CMD INSTALL or install_local(), the installation will work fine.

At the beginning I though, the problem is because the package has only one function, which may not be a common case, but I realized that this issue also appears with other packages when I install for the very first time, and not when updating installed packages.

May this be a bug?

Most helpful comment

This solves the problem for me. Specifically, I needed to:

  1. Run devtools::install_github("r-lib/remotes")
  2. Restart R.
  3. Run devtools::install_github("...") for the intended package.

Doing this, all packages install as intended. Thanks for the quick feedback!

All 6 comments

still having this problem within my colleagues...

Can confirm this. Fresh install after an update to 3.5.2 on Windows with no other external packages installed besides devtools. The full set of commands run right after the install were:

install.packages("devtools")
devtools::install_github("stefvanbuuren/mice")

This gave the error:

Error in read.dcf(path) :
  Found continuation line starting '    email = "stef. va ...' at begin of record.

Note that this is a different package. It's also interesting that I was able to run the same command without problem on an older install of R version 3.5.1 (also on Windows).

This error sounds a lot like: #1900 install_github() gives Error in read.dcf(path)

The resolution reached there is to update the remotes package, where this may have been fixed. The fix is currently only in the dev version, so you'd need to to devtools::install_github("r-lib/remotes").

This solves the problem for me. Specifically, I needed to:

  1. Run devtools::install_github("r-lib/remotes")
  2. Restart R.
  3. Run devtools::install_github("...") for the intended package.

Doing this, all packages install as intended. Thanks for the quick feedback!

OK great, so this is a duplicate of #1900.

This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/

Was this page helpful?
0 / 5 - 0 ratings

Related issues

asimumba picture asimumba  路  6Comments

bastistician picture bastistician  路  6Comments

IndrajeetPatil picture IndrajeetPatil  路  3Comments

hadley picture hadley  路  3Comments

bbolker picture bbolker  路  4Comments