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

Unable to install via Devtools #99

Closed
Oneiricer opened this issue Jan 16, 2019 · 11 comments
Closed

Unable to install via Devtools #99

Oneiricer opened this issue Jan 16, 2019 · 11 comments

Comments

@Oneiricer
Copy link

Hi Mitch
Thanks once again for your talks and contribution to this package. I'm not sure why i cannot seem to install this dev package. Currently using R 3.5.2. Do i need to downgrade R in order to install via devtools?

>devtools::install_github("tidyverts/fable")
Downloading GitHub repo tidyverts/fable@master
Error in process_initialize(self, private, command, args, stdin, stdout,  : 
  Command not found
In addition: Warning messages:
1: In untar2(tarfile, files, list, exdir) :
  skipping pax global extended headers
2: In untar2(tarfile, files, list, exdir) :
  skipping pax global extended headers
@mitchelloharawild
Copy link
Member

Are you able to install any packages via devtools?

@Oneiricer
Copy link
Author

on my work laptop, unable to install any packages via devtools.
i thought i'd try from my home desktop, and it does install quite a few packages. It asks me to update a lot of packages, either via CRAN or all. i picked CRAN for most of them.

However after a few rounds of that, it failed here:

Skipping tsibble, it is already being installed
Error in vapply(remotes, install_remote, ..., FUN.VALUE = character(1)) : 
  values must be type 'character',
 but FUN(X[[1]]) result is type 'logical'

@mitchelloharawild
Copy link
Member

Interesting, not sure why that would happen - certainly not specific to the fable package. Do you have the latest version of devtools? The fable package requires a compiler, so if you are using windows you may need Rtools to install from GitHub.

@slavarazbash
Copy link

I also cannot install the fable component, fablelite. I am using mac. Freshly installed devtools. I can install other packages with devtools - dplyr successfully installed from github.

`> devtools::install_github("tidyverts/fable")
Downloading GitHub repo tidyverts/fable@master
Downloading GitHub repo tidyverts/fablelite@master
✔ checking for file ‘/private/var/folders/d4/wq9zkp0j0rz8tzmdx12wpb6m0000gn/T/RtmpnCFJ8l/remotes96e313af9c4/tidyverts-fablelite-87cdee8/DESCRIPTION’ ...
─ preparing ‘fablelite’:
✔ checking DESCRIPTION meta-information ...
─ checking for LF line-endings in source and make files and shell scripts
─ checking for empty or unneeded directories
─ building ‘fablelite_0.0.0.9100.tar.gz’

  • installing source package ‘fablelite’ ...
    ** R
    ** inst
    ** byte-compile and prepare package for lazy loading
    Error : object ‘tbl_sum’ is not exported by 'namespace:tsibble'
    ERROR: lazy loading failed for package ‘fablelite’
  • removing ‘/Library/Frameworks/R.framework/Versions/3.5/Resources/library/fablelite’
    Error in i.p(...) :
    (converted from warning) installation of package ‘/var/folders/d4/wq9zkp0j0rz8tzmdx12wpb6m0000gn/T//RtmpnCFJ8l/file96e42392ac/fablelite_0.0.0.9100.tar.gz’ had non-zero exit status`

@mitchelloharawild
Copy link
Member

mitchelloharawild commented Feb 1, 2019 via email

@slavarazbash
Copy link

slavarazbash commented Feb 1, 2019

Still cannot install. Different error message this time:

  1. Installed the CRAN version of tsibble.

2.1. It asks me upgrade tsibble but I decline. See output below.

> devtools::install_github("tidyverts/fable")
Downloading GitHub repo tidyverts/fable@master
These packages have more recent versions available.
Which would you like to update?

1:   tsibble (0.6.2 -> b4b802c98...) [GitHub]

Enter one or more numbers separated by spaces, or an empty line to cancel
1: 
Downloading GitHub repo tidyverts/fablelite@master
These packages have more recent versions available.
Which would you like to update?

1:   tsibble (0.6.2 -> b4b802c98...) [GitHub]

Enter one or more numbers separated by spaces, or an empty line to cancel
1: 
✔  checking for file ‘/private/var/folders/d4/wq9zkp0j0rz8tzmdx12wpb6m0000gn/T/RtmpnCFJ8l/remotes96e2c85ff54/tidyverts-fablelite-87cdee8/DESCRIPTION’ (471ms)
─  preparing ‘fablelite’:
✔  checking DESCRIPTION meta-information ...
─  checking for LF line-endings in source and make files and shell scripts
─  checking for empty or unneeded directories
─  building ‘fablelite_0.0.0.9100.tar.gz’
   
* installing *source* package ‘fablelite’ ...
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
*** copying figures
** building package indices
** testing if installed package can be loaded
* DONE (fablelite)
✔  checking for file ‘/private/var/folders/d4/wq9zkp0j0rz8tzmdx12wpb6m0000gn/T/RtmpnCFJ8l/remotes96e2de06fcc/tidyverts-fable-a61ecfa/DESCRIPTION’ ...
─  preparing ‘fable’:
✔  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 ‘fable_0.0.0.9100.tar.gz’
   
* installing *source* package ‘fable’ ...
** libs
clang++  -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I"/Library/Frameworks/R.framework/Versions/3.5/Resources/library/Rcpp/include" -I"/Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppArmadillo/include" -I/usr/local/include   -fPIC  -Wall -g -O2  -c etsTargetFunction.cpp -o etsTargetFunction.o
In file included from etsTargetFunction.cpp:7:
In file included from ./etsTargetFunction.h:3:
In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/Rcpp/include/Rcpp.h:27:
In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/Rcpp/include/RcppCommon.h:128:
/Library/Frameworks/R.framework/Versions/3.5/Resources/library/Rcpp/include/Rcpp/exceptions.h:109:53: warning: all paths through this function will call
      itself [-Winfinite-recursion]
    inline void warning(const std::string& message) {        // #nocov start
                                                    ^
1 warning generated.
clang++  -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I"/Library/Frameworks/R.framework/Versions/3.5/Resources/library/Rcpp/include" -I"/Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppArmadillo/include" -I/usr/local/include   -fPIC  -Wall -g -O2  -c etsTargetFunctionWrapper.cpp -o etsTargetFunctionWrapper.o
In file included from etsTargetFunctionWrapper.cpp:10:
In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/Rcpp/include/Rcpp.h:27:
In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/Rcpp/include/RcppCommon.h:128:
/Library/Frameworks/R.framework/Versions/3.5/Resources/library/Rcpp/include/Rcpp/exceptions.h:109:53: warning: all paths through this function will call
      itself [-Winfinite-recursion]
    inline void warning(const std::string& message) {        // #nocov start
                                                    ^
1 warning generated.
clang -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I"/Library/Frameworks/R.framework/Versions/3.5/Resources/library/Rcpp/include" -I"/Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppArmadillo/include" -I/usr/local/include   -fPIC  -Wall -g -O2  -c etscalc.c -o etscalc.o
clang -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I"/Library/Frameworks/R.framework/Versions/3.5/Resources/library/Rcpp/include" -I"/Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppArmadillo/include" -I/usr/local/include   -fPIC  -Wall -g -O2  -c etspolyroot.c -o etspolyroot.o
clang -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I"/Library/Frameworks/R.framework/Versions/3.5/Resources/library/Rcpp/include" -I"/Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppArmadillo/include" -I/usr/local/include   -fPIC  -Wall -g -O2  -c registerDynamicSymbol.c -o registerDynamicSymbol.o
clang++ -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/Library/Frameworks/R.framework/Resources/lib -L/usr/local/lib -o fable.so etsTargetFunction.o etsTargetFunctionWrapper.o etscalc.o etspolyroot.o registerDynamicSymbol.o -L/Library/Frameworks/R.framework/Resources/lib -lRlapack -L/Library/Frameworks/R.framework/Resources/lib -lRblas -L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin15/6.1.0 -L/usr/local/gfortran/lib -lgfortran -lquadmath -lm -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation
ld: warning: directory not found for option '-L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin15/6.1.0'
ld: warning: directory not found for option '-L/usr/local/gfortran/lib'
ld: library not found for -lgfortran
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [fable.so] Error 1
ERROR: compilation failed for package ‘fable’
* removing ‘/Library/Frameworks/R.framework/Versions/3.5/Resources/library/fable’
Error in i.p(...) : 
  (converted from warning) installation of package ‘/var/folders/d4/wq9zkp0j0rz8tzmdx12wpb6m0000gn/T//RtmpnCFJ8l/file96e3be566d4/fable_0.0.0.9100.tar.gz’ had non-zero exit status

2.2 I tried with upgrading tsibble when it asks me. Also with an error. See output below.

> devtools::install_github("tidyverts/fable")
Downloading GitHub repo tidyverts/fable@master
These packages have more recent versions available.
Which would you like to update?

1:   tsibble (0.6.2 -> b4b802c98...) [GitHub]

Enter one or more numbers separated by spaces, or an empty line to cancel
1: 1
tsibble (0.6.2 -> b4b802c98...) [GitHub]
Downloading GitHub repo tidyverts/tsibble@master
✔  checking for file ‘/private/var/folders/d4/wq9zkp0j0rz8tzmdx12wpb6m0000gn/T/RtmpnCFJ8l/remotes96e31ce35e8/tidyverts-tsibble-b4b802c/DESCRIPTION’ (404ms)
─  preparing ‘tsibble’:
✔  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
─  looking to see if a ‘data/datalist’ file should be added
─  building ‘tsibble_0.6.2.9000.tar.gz’
   
* installing *source* package ‘tsibble’ ...
** libs
clang++  -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I"/Library/Frameworks/R.framework/Versions/3.5/Resources/library/Rcpp/include" -I/usr/local/include   -fPIC  -Wall -g -O2  -c RcppExports.cpp -o RcppExports.o
clang++  -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I"/Library/Frameworks/R.framework/Versions/3.5/Resources/library/Rcpp/include" -I/usr/local/include   -fPIC  -Wall -g -O2  -c time-wise.cpp -o time-wise.o
clang++  -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I"/Library/Frameworks/R.framework/Versions/3.5/Resources/library/Rcpp/include" -I/usr/local/include   -fPIC  -Wall -g -O2  -c utils.cpp -o utils.o
clang++ -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/Library/Frameworks/R.framework/Resources/lib -L/usr/local/lib -o tsibble.so RcppExports.o time-wise.o utils.o -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation
installing to /Library/Frameworks/R.framework/Versions/3.5/Resources/library/tsibble/libs
** R
** data
*** moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
*** copying figures
** building package indices
** installing vignettes
** testing if installed package can be loaded
* DONE (tsibble)
✔  checking for file ‘/private/var/folders/d4/wq9zkp0j0rz8tzmdx12wpb6m0000gn/T/RtmpnCFJ8l/remotes96e3d67434c/tidyverts-fable-a61ecfa/DESCRIPTION’ ...
─  preparing ‘fable’:
✔  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 ‘fable_0.0.0.9100.tar.gz’
   
* installing *source* package ‘fable’ ...
** libs
clang++  -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I"/Library/Frameworks/R.framework/Versions/3.5/Resources/library/Rcpp/include" -I"/Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppArmadillo/include" -I/usr/local/include   -fPIC  -Wall -g -O2  -c etsTargetFunction.cpp -o etsTargetFunction.o
In file included from etsTargetFunction.cpp:7:
In file included from ./etsTargetFunction.h:3:
In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/Rcpp/include/Rcpp.h:27:
In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/Rcpp/include/RcppCommon.h:128:
/Library/Frameworks/R.framework/Versions/3.5/Resources/library/Rcpp/include/Rcpp/exceptions.h:109:53: warning: all paths through this function will call
      itself [-Winfinite-recursion]
    inline void warning(const std::string& message) {        // #nocov start
                                                    ^
1 warning generated.
clang++  -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I"/Library/Frameworks/R.framework/Versions/3.5/Resources/library/Rcpp/include" -I"/Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppArmadillo/include" -I/usr/local/include   -fPIC  -Wall -g -O2  -c etsTargetFunctionWrapper.cpp -o etsTargetFunctionWrapper.o
In file included from etsTargetFunctionWrapper.cpp:10:
In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/Rcpp/include/Rcpp.h:27:
In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/Rcpp/include/RcppCommon.h:128:
/Library/Frameworks/R.framework/Versions/3.5/Resources/library/Rcpp/include/Rcpp/exceptions.h:109:53: warning: all paths through this function will call
      itself [-Winfinite-recursion]
    inline void warning(const std::string& message) {        // #nocov start
                                                    ^
1 warning generated.
clang -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I"/Library/Frameworks/R.framework/Versions/3.5/Resources/library/Rcpp/include" -I"/Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppArmadillo/include" -I/usr/local/include   -fPIC  -Wall -g -O2  -c etscalc.c -o etscalc.o
clang -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I"/Library/Frameworks/R.framework/Versions/3.5/Resources/library/Rcpp/include" -I"/Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppArmadillo/include" -I/usr/local/include   -fPIC  -Wall -g -O2  -c etspolyroot.c -o etspolyroot.o
clang -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I"/Library/Frameworks/R.framework/Versions/3.5/Resources/library/Rcpp/include" -I"/Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppArmadillo/include" -I/usr/local/include   -fPIC  -Wall -g -O2  -c registerDynamicSymbol.c -o registerDynamicSymbol.o
clang++ -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/Library/Frameworks/R.framework/Resources/lib -L/usr/local/lib -o fable.so etsTargetFunction.o etsTargetFunctionWrapper.o etscalc.o etspolyroot.o registerDynamicSymbol.o -L/Library/Frameworks/R.framework/Resources/lib -lRlapack -L/Library/Frameworks/R.framework/Resources/lib -lRblas -L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin15/6.1.0 -L/usr/local/gfortran/lib -lgfortran -lquadmath -lm -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation
ld: warning: directory not found for option '-L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin15/6.1.0'
ld: warning: directory not found for option '-L/usr/local/gfortran/lib'
ld: library not found for -lgfortran
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [fable.so] Error 1
ERROR: compilation failed for package ‘fable’
* removing ‘/Library/Frameworks/R.framework/Versions/3.5/Resources/library/fable’
Error in i.p(...) : 
  (converted from warning) installation of package ‘/var/folders/d4/wq9zkp0j0rz8tzmdx12wpb6m0000gn/T//RtmpnCFJ8l/file96e3fc1dc0b/fable_0.0.0.9100.tar.gz’ had non-zero exit status

@slavarazbash
Copy link

devtools::install_github("tidyverts/[email protected]") does not work either.

@earowang
Copy link
Member

earowang commented Feb 1, 2019

Can you restart R/RStudio and use tsibble cran version?

@slavarazbash
Copy link

Can you restart R/RStudio and use tsibble cran version?

It still does not work

@mitchelloharawild
Copy link
Member

I've updated the package to work with dplyr v0.8.0 and the latest development version of tsibble.
Please try installing the fablelite package from GitHub:

# install.packages("devtools")
devtools::install_github("tidyverts/fablelite")

@mitchelloharawild
Copy link
Member

Please refer to #107 to resolve this issue.

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

4 participants