jonathancornelissen / highfrequencyGSOC

Repo for the Google Summer of Code project of student Giang Nguyen
0 stars 2 forks source link

installation error #1

Open englianhu opened 3 years ago

englianhu commented 3 years ago
✓ [master]> install_github('jonathancornelissen/highfrequencyGSOC')
Downloading GitHub repo jonathancornelissen/highfrequencyGSOC@HEAD
Skipping 1 packages ahead of CRAN: robustbase
✓  checking for file ‘/tmp/RtmpnrnveZ/remotesd1c5303939e/jonathancornelissen-highfrequencyGSOC-454dfd2/DESCRIPTION’ ...
─  preparing ‘highfrequencyGSOC’:
✓  checking DESCRIPTION meta-information ...
─  cleaning src
─  checking for LF line-endings in source and make files and shell scripts
─  checking for empty or unneeded directories
─  building ‘highfrequencyGSOC_1.0.tar.gz’

Installing package into '/usr/lib/R/library'
(as 'lib' is unspecified)
* installing *source* package ‘highfrequencyGSOC’ ...
** using staged installation
** libs
gcc -std=gnu99 -I"/usr/share/R/include" -DNDEBUG      -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-tbZjLv/r-base-4.1.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c highfrequencyGSOC.c -o highfrequencyGSOC.o
highfrequencyGSOC.c:4:10: fatal error: highfrequencyGSOC.h: No such file or directory
 #include "highfrequencyGSOC.h"
          ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [/usr/lib/R/etc/Makeconf:168: highfrequencyGSOC.o] Error 1
ERROR: compilation failed for package ‘highfrequencyGSOC’
* removing ‘/usr/lib/R/library/highfrequencyGSOC’
✓ [master]> session_info()$platform
 setting  value                       
 version  R version 4.1.0 (2021-05-18)
 os       Ubuntu 20.04.2 LTS          
 system   x86_64, linux-gnu           
 ui       RStudio                     
 language en                          
 collate  en_US.UTF-8                 
 ctype    en_US.UTF-8                 
 tz       Asia/Tokyo                  
 date     2021-06-02
englianhu commented 2 years ago
#include <stdio.h> 
#include <stdlib.h> 
#include <R.h> 
-#include "highfrequencyGSOC.h" 
#include <math.h> 

void heavy_likelihoodR(double *parameters, double *data, int *T1, int *K1, double *means, int *p, int *q, int *pMax1, int *qMax1, 
      double *backcast, double *LB, double *UB, int *compconst1, double *h, double *lls, double *llRM, double *ll) 
{
...
...
...

查阅该函数的文件 https://github.com/jonathancornelissen/highfrequencyGSOC/blob/master/src/highfrequencyGSOC.c 后,发现遗漏掉或者调用不到highfrequencyGSOC.h文件~

参考文献/文章: