Closed kmonar closed 4 years ago
Can’t say I recall seeing that error. Try restarting R. If error persists, please send sessionInfo().
Thanks
On Sun, May 17, 2020 at 6:00 PM kmonar notifications@github.com wrote:
Hi, I tried below commands but I got an error messages:
install.packages("devtools") require(devtools) install.packages("FinancialInstrument") install.packages("PerformanceAnalytics") install_github("joshuaulrich/xts")
devtools::install_github("braverock/blotter") devtools::install_github("braverock/quantstrat")
devtools::install_github("braverock/blotter") Downloading GitHub repo braverock/blotter@master sh: 1: /bin/gtar: not found sh: 1: /bin/gtar: not found Error: Failed to install 'blotter' from GitHub: error in running command Además: Warning messages: 1: In system(cmd) : error in running command 2: In utils::untar(tarfile, ...) : ‘/bin/gtar -xf '/tmp/RtmpANpdA4/file57366d6dd5ed.tar.gz' -C '/tmp/RtmpANpdA4/remotes573625df8eed'’ returned error code 127
devtools::install_github("braverock/quantstrat") Downloading GitHub repo braverock/quantstrat@master sh: 1: /bin/gtar: not found sh: 1: /bin/gtar: not found Error: Failed to install 'quantstrat' from GitHub: error in running command Además: Warning messages: 1: In system(cmd) : error in running command 2: In utils::untar(tarfile, ...) : ‘/bin/gtar -xf '/tmp/RtmpANpdA4/file5736667bc425.tar.gz' -C '/tmp/RtmpANpdA4/remotes573667c90fed'’ returned error code 127
What could be the problem?
Thanks!
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/braverock/blotter/issues/104, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABBDTPFVY5XZHH5JTO255LDRSBM7LANCNFSM4NDSF5RQ .
Hi jaymon0703, thanks for your quick reply!
After restarting the pc I get the same error. here you have sessionInfo()
require(devtools) Loading required package: devtools Loading required package: usethis devtools::install_github("braverock/blotter") Downloading GitHub repo braverock/blotter@master sh: 1: /bin/gtar: not found sh: 1: /bin/gtar: not found Error: Failed to install 'blotter' from GitHub: error in running command Además: Warning messages: 1: In system(cmd) : error in running command 2: In utils::untar(tarfile, ...) : ‘/bin/gtar -xf '/tmp/RtmpSj4Cr3/file2c9711f2c8ae.tar.gz' -C '/tmp/RtmpSj4Cr3/remotes2c9761abb0bd'’ returned error code 127 sessionInfo() R version 3.6.1 (2019-07-05) Platform: x86_64-conda_cos6-linux-gnu (64-bit) Running under: Debian GNU/Linux 10 (buster)
Matrix products: default BLAS/LAPACK: /home/anaconda3/envs/r/lib/R/lib/libRblas.so
locale:
[1] LC_CTYPE=es_ES.UTF-8 LC_NUMERIC=C LC_TIME=es_ES.UTF-8
[4] LC_COLLATE=es_ES.UTF-8 LC_MONETARY=es_ES.UTF-8 LC_MESSAGES=es_ES.UTF-8
[7] LC_PAPER=es_ES.UTF-8 LC_NAME=C LC_ADDRESS=C
[10] LC_TELEPHONE=C LC_MEASUREMENT=es_ES.UTF-8 LC_IDENTIFICATION=C
attached base packages: [1] stats graphics grDevices utils datasets methods base
other attached packages: [1] devtools_2.2.2 usethis_1.5.1
loaded via a namespace (and not attached):
[1] Rcpp_1.0.1 pillar_1.3.1 compiler_3.6.1 later_0.8.0 remotes_2.1.1
[6] prettyunits_1.0.2 tools_3.6.1 testthat_2.3.2 pkgload_1.0.2 digest_0.6.18
[11] pkgbuild_1.0.6 memoise_1.1.0 tibble_2.1.1 gtable_0.3.0 pkgconfig_2.0.2
[16] rlang_0.4.5 shiny_1.3.2 cli_2.0.2 rstudioapi_0.10 curl_3.3
[21] yaml_2.2.0 withr_2.1.2 dplyr_0.8.0.1 desc_1.2.0 fs_1.3.2
[26] rprojroot_1.3-2 grid_3.6.1 tidyselect_0.2.5 glue_1.3.1 R6_2.4.0
[31] processx_3.3.0 fansi_0.4.0 sessioninfo_1.1.1 ggplot2_3.3.0 purrr_0.3.3
[36] callr_3.2.0 magrittr_1.5 backports_1.1.4 ps_1.3.0 scales_1.0.0
[41] promises_1.0.1 htmltools_0.3.6 ellipsis_0.3.0 assertthat_0.2.1 mime_0.6
[46] xtable_1.8-4 colorspace_1.4-1 httpuv_1.5.1 lazyeval_0.2.2 munsell_0.5.0
[51] crayon_1.3.4
tar is an essential package in most linux installations, so I am surprised it would not be found.
There are two likely problems. One is that tar is not installed for some reason, in which case you are likely missing other build dependencies as well. The other, simpler answer is that your system is expecting a symbolic link to gtar
for some reason.
From a command terminal, try:
which tar
and
which gtar
Normally, there is not a link to /bin/gtar
if which tar
returns /bin/tar
and which gtar
returns nothing, then do
sudo ln -s /bin/tar /bin/gtar
if which tar
also returns nothing, then make sure you have all the required build dependencies for R
following these directions:
https://cran.r-project.org/bin/linux/debian/
pay particular attention to adding the repository, and to make sure to install r-base-dev
if tar
is still not installed, you can install it via
sudo apt-get install tar
Thanks a lot!
This line you commented 'sudo ln -s /bin/tar /bin/gtar' solved the issue.
Hi, I tried below commands but I got an error messages:
install.packages("devtools") require(devtools) install.packages("FinancialInstrument") install.packages("PerformanceAnalytics") install_github("joshuaulrich/xts")
devtools::install_github("braverock/blotter") devtools::install_github("braverock/quantstrat")
What could be the problem?
Thanks!