Skip to content

Error converted from warning prevents package install when dependency was built under newer R version #403

@psolymos

Description

@psolymos

I am having R version 3.6.0 in Windows, and when I try to use remotes::install_github I get this an error converted from a warning that package 'x' was built under R version 3.6.1. I was trying to override the behaviour at the function call level using dependencies=FALSE to no avail.

> remotes::install_github("psolymos/bSims")
Downloading GitHub repo psolymos/bSims@master
[...]
* installing *source* package 'bSims' ...
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
Error: (converted from warning) package 'mefa4' was built under R version 3.6.1
Execution halted
ERROR: lazy loading failed for package 'bSims'
* removing 'C:/R/R-3.6.0/library/bSims'
* restoring previous 'C:/R/R-3.6.0/library/bSims'
Error in i.p(...) : 
  (converted from warning) installation of packageC:/Users/PETERS~1/AppData/Local/Temp/RtmpSssGwE/file3d706900445a/bSims_0.1-2.tar.gzhad non-zero exit status

> remotes::install_github("psolymos/bSims", dependencies=FALSE)
Downloading GitHub repo psolymos/bSims@master
[...]  
* installing *source* package 'bSims' ...
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
Error: (converted from warning) package 'mefa4' was built under R version 3.6.1
Execution halted
ERROR: lazy loading failed for package 'bSims'
* removing 'C:/R/R-3.6.0/library/bSims'
* restoring previous 'C:/R/R-3.6.0/library/bSims'
Error in i.p(...) : 
  (converted from warning) installation of packageC:/Users/PETERS~1/AppData/Local/Temp/RtmpSssGwE/file3d7038435b8a/bSims_0.1-2.tar.gzhad non-zero exit status

Is this warning-to-error conversion really necessary in this case? Seems to me a bit overkill for same major R version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions