geco-bern / FluxDataKit

LEMONTREE flux data kit
https://geco-bern.github.io/FluxDataKit
2 stars 11 forks source link

FluxnetLSM installation #21

Closed stineb closed 2 years ago

stineb commented 2 years ago

Vignette 03_data_generation.Rmd loads the FluxnetLSM library. I tried to install it by

devtools::install_github("aukkola/FluxnetLSM")

But got this error:

* installing *source* package ‘FluxnetLSM’ ...
** using staged installation
** libs
** arch - 
Rscript zzz.R
fatal: not a git repository (or any of the parent directories): .git
Warning message:
In system("git rev-parse --verify HEAD", intern = TRUE) :
  running command 'git rev-parse --verify HEAD' had status 128
git rev: NON-GIT
** R
** data
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
ERROR: hard-coded installation path: please report to the package maintainer and use ‘--no-staged-install’
* removing ‘/Library/Frameworks/R.framework/Versions/4.2/Resources/library/FluxnetLSM’
Warning messages:
1: In readLines(old_path) :
  incomplete final line found on '/Users/benjaminstocker/.R/Makevars'
2: In i.p(...) :
  installation of package ‘/var/folders/50/6vwrc_t54pv4n9vty5dgt4fw0000gn/T//RtmplOVr6N/file610347d6221d/FluxnetLSM_1.0.tar.gz’ had non-zero exit status

Should I be installing it from a different source?

khufkens commented 2 years ago

The original is faulty, fails on stuff. Use the one in our group repo.