Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation Error #71

Closed
englianhu opened this issue May 31, 2021 · 4 comments
Closed

Installation Error #71

englianhu opened this issue May 31, 2021 · 4 comments

Comments

@englianhu
Copy link

install_github("https://github.com/jonathancornelissen/highfrequency")
Downloading GitHub repo jonathancornelissen/highfrequency@HEADchecking for file/tmp/Rtmp0o73KD/remotesba765f93b564/jonathancornelissen-highfrequency-616a5b8/DESCRIPTION’
─  preparinghighfrequency:checking DESCRIPTION meta-information ...cleaning srcchecking for LF line-endings in source and make files and shell scriptschecking for empty or unneeded directoriesbuildinghighfrequency_0.9.0.tar.gzInstalling package into '/usr/lib/R/library'
(as 'lib' is unspecified)
* installing *source* packagehighfrequency...
** using staged installation
** libs
g++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG  -I'/usr/lib/R/site-library/Rcpp/include' -I'/usr/lib/R/library/RcppArmadillo/include'   -fopenmp -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 HARmodel.cpp -o HARmodel.o
g++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG  -I'/usr/lib/R/site-library/Rcpp/include' -I'/usr/lib/R/library/RcppArmadillo/include'   -fopenmp -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 HEAVYmodel.cpp -o HEAVYmodel.o
g++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG  -I'/usr/lib/R/site-library/Rcpp/include' -I'/usr/lib/R/library/RcppArmadillo/include'   -fopenmp -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 RcppExports.cpp -o RcppExports.o
g++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG  -I'/usr/lib/R/site-library/Rcpp/include' -I'/usr/lib/R/library/RcppArmadillo/include'   -fopenmp -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 businessTimeSampling.cpp -o businessTimeSampling.o
g++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG  -I'/usr/lib/R/site-library/Rcpp/include' -I'/usr/lib/R/library/RcppArmadillo/include'   -fopenmp -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 dataHandlingInternals.cpp -o dataHandlingInternals.o
g++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG  -I'/usr/lib/R/site-library/Rcpp/include' -I'/usr/lib/R/library/RcppArmadillo/include'   -fopenmp -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 driftBursts.cpp -o driftBursts.o
g++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG  -I'/usr/lib/R/site-library/Rcpp/include' -I'/usr/lib/R/library/RcppArmadillo/include'   -fopenmp -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 internals.cpp -o internals.o
g++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG  -I'/usr/lib/R/site-library/Rcpp/include' -I'/usr/lib/R/library/RcppArmadillo/include'   -fopenmp -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 leadLag.cpp -o leadLag.o
g++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG  -I'/usr/lib/R/site-library/Rcpp/include' -I'/usr/lib/R/library/RcppArmadillo/include'   -fopenmp -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 realizedMeasures.cpp -o realizedMeasures.o
g++ -std=gnu++11 -shared -L/usr/lib/R/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -o highfrequency.so HARmodel.o HEAVYmodel.o RcppExports.o businessTimeSampling.o dataHandlingInternals.o driftBursts.o internals.o leadLag.o realizedMeasures.o -fopenmp -llapack -lblas -lgfortran -lm -lquadmath -L/usr/lib/R/lib -lR
installing to /usr/lib/R/library/00LOCK-highfrequency/00new/highfrequency/libs
** R
** data
*** moving datasets to lazyload DB
** byte-compile and prepare package for lazy loading
Error in namespaceExport(ns, exports) : undefined exports: class ITime
Calls: <Anonymous> ... namespaceImportFrom -> asNamespace -> loadNamespace -> namespaceExport
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
Error: package or namespace load failed forhighfrequencyin namespaceExport(ns, exports):
 undefined exports: class ITime
Error: loading failed
** checking absolute paths in shared objects and dynamic libraries
** testing if installed package can be loaded from final location
Error: package or namespace load failed forhighfrequencyin namespaceExport(ns, exports):
 undefined exports: class ITime
Error: loading failed
Error in namespaceExport(ns, exports) : undefined exports: class ITime
Calls: <Anonymous> ... namespaceImportFrom -> asNamespace -> loadNamespace -> namespaceExport
** testing if installed package keeps a record of temporary installation path
> 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-01
@emilsjoerup
Copy link
Contributor

Hi,

I am heading off to bed, so I will have to look at it tomorrow morning if this shot in the dark doesn't work.

It seems to me like the problem stems from the ITime class although I am not exactly sure where we use it I do know it comes from the data.table package. Maybe this package is not properly installed? I didn't have problems installing the highfrequency package after updating R to 4.1.0, and I am on Ubuntu 20.04 as you.

If a (re)install of data.table does not fix your problem, please let us know and we will fix it as soon as possible as this kind of error is very detrimental.

Best,
Emil

@emilsjoerup
Copy link
Contributor

Dear Eng,

Does (re)installing data.table fix it for you?

I have now had a chance to look into the problem at try to replicate it on my machine.
I tried to reset my installation of R and install the package from github and it worked fine.

Therefore, if it doesn't work for you we will need more information.

@englianhu
Copy link
Author

Rdatatable/data.table#5030 (comment)

@emilsjoerup
Copy link
Contributor

Happy you found a way around it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants