MagicForrest / DGVMTools

R package for processing, analysing and visualising ouput from Dynamic Global Vegetation Models (DGVMs)
GNU General Public License v3.0
27 stars 22 forks source link

After I updated R to 3.6, I get errors when installing the package (Windows) #27

Closed antonycastro closed 5 years ago

antonycastro commented 5 years ago

After I updated my R to 3.6, I keep getting the following error when installing the package. Any idea how could I solve this?

remotes::install_github("MagicForrest/DGVMTools") Downloading GitHub repo MagicForrest/DGVMTools@master √ checking for file 'C:\Users\Tony\AppData\Local\Temp\RtmpumyjeA\remotes541450ba4878\MagicForrest-DGVMTools-6bca4dd/DESCRIPTION' (1.3s)

  • preparing 'DGVMTools': (2.3s) √ checking DESCRIPTION meta-information ...
  • checking for LF line-endings in source and make files and shell scripts (949ms)
  • checking for empty or unneeded directories
  • building 'DGVMTools_0.8.1.tar.gz'

Installing package into ‘C:/Users/Tony/Documents/R/win-library/3.6’ (as ‘lib’ is unspecified)

All the best,

MagicForrest commented 5 years ago

Hi Antony, thanks for reporting.

I think the issue should be fixed now, it was reproducible with R v3.6 on Windows and Ubuntu). For posterity, it seems like R v3.6 doesn't like numeric vectors on the 'prototype' part of an S4 class definition. That seems silly to me, but is easy enough to solve in this case.

Anyways, the master branch has been updated so go ahead and try your install again. And if it works feel free to close the issue ;-).