Error in install.packages : Line starting '<!DOCTYPE HTML PUBLI ...' is malformed!

This is now resolved:

Upgraded to the latest R and RStudio versions and downloaded the warbleR package using devtools.

Error Information:

I recently downgraded my R version from 3.6.2 to 3.2.1 so I could use the package warbleR due to
warning message (package 'warbleR' is not available for R version 3.6.2).

Now, when trying to install any package I get this error:
Error in install.packages : Line starting '<!DOCTYPE HTML PUBLI ...' is malformed!

I've tried so far:

  • Checked syntax, typos and internet connexion

  • Install different packages (ggplot2, lmer4, dplyr...) --> all have the same error
    Warning in install.packages :
    dependencies (...) are not available
    also installing the dependencies (...)
    Error in install.packages : Line starting '<!DOCTYPE HTML PUBLI ...' is malformed!

  • Install package Groundhog (source: datacolada.org/95)

  • Uninstall and reinstall R and RStudio

  • Changed the repo and the download method:

  • Change repositories from Global Options -> Packages

  • Global Options -> Packages --> unchecked Use secure download method for HTTP

System Information:

  • RStudio Edition: Desktop
  • RStudio Version: 1.4.1103
  • Mac OS Version: Big Sur 11.1 version
  • R Version: 3.2.1

Downgrading the R version like that is not a good idea and will create all kinds of other problems.

You can install the last version from the archive and continue with a recent version of R:
Index of /src/contrib/Archive/warbleR (r-project.org)

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.