Install fails on R 4.10

Issue #17 new
Emil OW Kirkegaard created an issue

I was able to install this recently, but it seems R 4.1.0 broke it.

With latest release:

> devtools::install_git('https://bitbucket.org/nicholasehamilton/ggtern')
Error: Failed to install 'unknown package' from Git:
  Git does not seem to be installed on your system.
> devtools::install_git('https://bitbucket.org/nicholasehamilton/ggtern')
Downloading git repo https://bitbucket.org/nicholasehamilton/ggtern
'/usr/bin/git' clone --depth 1 --no-hardlinks https://bitbucket.org/nicholasehamilton/ggtern /tmp/RtmpUy7zVF/file1d6e73ff37fd2
Cloning into '/tmp/RtmpUy7zVF/file1d6e73ff37fd2'...
✓  checking for file ‘/tmp/RtmpUy7zVF/file1d6e73ff37fd2/DESCRIPTION’ ...
─  preparing ‘ggtern’:
✓  checking DESCRIPTION meta-information ...
─  installing the package to process help pages
         -----------------------------------
─  installing *source* package ‘ggtern’ ...
   ** using staged installation
   ** R
   ** data
   ** demo
   ** inst
   ** byte-compile and prepare package for lazy loading
   Error in get(x, envir = ns, inherits = FALSE) : 
     object 'try_require' not found
   Error: unable to load R code in package ‘ggtern’
   Execution halted
   ERROR: lazy loading failed for package ‘ggtern’
─  removing ‘/tmp/RtmpjubosF/Rinst1f21349192793/ggtern’
         -----------------------------------
   ERROR: package installation failed
Error: Failed to install 'ggtern' from Git:
  System command 'R' failed, exit status: 1, stdout + stderr (last 10 lines):
E> ** inst
E> ** byte-compile and prepare package for lazy loading
E> Error in get(x, envir = ns, inherits = FALSE) : 
E>   object 'try_require' not found
E> Error: unable to load R code in package ‘ggtern’
E> Execution halted
E> ERROR: lazy loading failed for package ‘ggtern’
E> * removing ‘/tmp/RtmpjubosF/Rinst1f21349192793/ggtern’
E>       -----------------------------------
E> ERROR: package installation failed

With CRAN:

[5/5] Installing ggtern...
** testing if installed package keeps a record of temporary installation path
* DONE (hexbin)

The downloaded source packages are in
    /tmp/RtmpYmPK1r/downloaded_packages
Installing package into /home/emil/R/x86_64-pc-linux-gnu-library/4.1
(as lib is unspecified)
trying URL 'https://cloud.r-project.org/src/contrib/ggtern_3.3.0.tar.gz'
Content type 'application/x-gzip' length 562557 bytes (549 KB)
==================================================
downloaded 549 KB

* installing *source* package ggtern ...
** package ggtern successfully unpacked and MD5 sums checked
** using staged installation
** R
** data
** demo
** inst
** byte-compile and prepare package for lazy loading
Error in get(x, envir = ns, inherits = FALSE) : 
  object 'try_require' not found
Error: unable to load R code in package ggtern
Execution halted
ERROR: lazy loading failed for package ggtern
* removing /home/emil/R/x86_64-pc-linux-gnu-library/4.1/ggtern

The downloaded source packages are in
    /tmp/RtmpYmPK1r/downloaded_packages


 Package 'ggtern' successfully installed.
Warning message:
In utils::install.packages("ggtern", repos = "https://cloud.r-project.org") :
  installation of package ggtern had non-zero exit status

Comments (3)

  1. Kara Taylor

    I also recently tried to do a clean reinstall of ggtern and got the same object 'try_require' not found error. And that was using R/3.6 for me, so it’s not just an R/4.1 issue.

  2. Log in to comment