Incomplete final line found on Rprofile.site when installing from GitHub

Rprofile.site incomplete final line error

I was stumbling on this “incomplete final line found on Rprofile” error while installing d3rain package with the following code remotes::install_github("daranzolin/d3rain"). In one of the previous post I was modifying my Rprofile.site file and there is definitely a connection with this error.

The solution to this error is a blank line at the end of your Rprofile script.

One way to do that is with this function:

file.edit("C:/YourPath/R/Rprofile.site")

The result looks like this.

One comment

Leave a comment

Your email address will not be published. Required fields are marked *

Exit mobile version