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

install_github() failing on Windows due to long path names #84

Closed
r-pkgs-bot opened this issue Aug 2, 2017 · 14 comments

Comments

Projects
None yet
3 participants
@r-pkgs-bot
Copy link

commented Aug 2, 2017

Issue by MrDAndersen
Thursday Jun 23, 2016 at 16:15 GMT
Originally opened as r-lib/devtools#1235


We have a package available for install in a sub directory R Package/ffanalytics at dadrivr/FantasyFootballAnalyticsR. Users are instructed to install this via devtools::install_github(repo = "dadrivr/FantasyFootballAnalyticsR", subdir = "R Package/ffanalytics"). However, Windows users are reporting that the install fails with following error

Error in utils::unzip(src, exdir = target) :
cannot open file ‘C:/Users/<username>/AppData/Local/Temp/RtmpMZfFU0/devtools63c36d21285/dadrivr-FantasyFootballAnalyticsR-6c6c4a9/R Markdown/SubcriptionAccuracy/subscriptionAccuracy_cache/markdown_phpextra+backtick_code_blocks/unnamed-chunk-1_af5e2a896358b9ccbc8241e876b9ce5c.RData’: No such file or directory

The file mentioned is not part of the package directory, so I suspect that devtools::install_github is downloading the entire repo and then parsing it to find the subdir with the package. Since the repo files are extracted into a temp directory (C:/Users/<username>/AppData/Local/Temp......) the file names get rather long when it has to go through several levels of folders.
The interesting thing is that you can get the command to complete after a number of tries - which may be when the file paths become short enough (<256 characters)

@r-pkgs-bot

This comment has been minimized.

Copy link
Author

commented Aug 2, 2017

Comment by henrygabs
Tuesday Aug 23, 2016 at 12:21 GMT


Any suggestions for a solution to or this problem?

@r-pkgs-bot

This comment has been minimized.

Copy link
Author

commented Aug 2, 2017

Comment by jianlingfan
Wednesday Feb 22, 2017 at 03:47 GMT


I got the same problem recently, do you have a solution?

@r-pkgs-bot

This comment has been minimized.

Copy link
Author

commented Aug 2, 2017

Comment by hadley
Wednesday Aug 02, 2017 at 21:00 GMT


Duplicate of #1464

@r-pkgs-bot

This comment has been minimized.

Copy link
Author

commented Aug 2, 2017

Comment by hadley
Wednesday Aug 02, 2017 at 21:03 GMT


Hmmm, might actually be a different problem, so I'll keep this one open.

@gaborcsardi

This comment has been minimized.

Copy link
Member

commented Sep 22, 2018

devtools installs this package properly for me, and after fixing #166 I think remotes will be fine as well. Please reopen if you still have problems.

@yutannihilation

This comment has been minimized.

Copy link
Contributor

commented Sep 22, 2018

@gaborcsardi
Could you reopen this? I think this is not fixed yet. The code below still fails on Windows.

remotes::install_github("rstudio/radix@c3dba83")

In case this is useful, here's the error log. You can see over-long path length warnings.

remotes::install_github("rstudio/radix@c3dba83")
#> Downloading GitHub repo rstudio/radix@c3dba83
#> tar.exe: Option --force-local is not supported
#> Usage:
#>   List:    tar.exe -tf <archive-filename>
#>   Extract: tar.exe -xf <archive-filename>
#>   Create:  tar.exe -cf <archive-filename> [filenames...]
#>   Help:    tar.exe --help
#> Skipping 1 packages ahead of CRAN: rlang
#> Running "C:/PROGRA~1/R/R-35~1.1/bin/x64/Rcmd.exe" build \
#>   "C:\Users\hiroaki-yutani\AppData\Local\Temp\RtmpYLoNHr\remotes1cd8517318fd\rstudio-radix-c3dba83" \
#>   --no-resave-data --no-resave-data --no-manual --no-build-vignettes
#> * checking for file 'C:\Users\hiroaki-yutani\AppData\Local\Temp\RtmpYLoNHr\remotes1cd8517318fd\rstudio-radix-c3dba83/DESCRIPTION' ... OK
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   problem copying .\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2016-11-08-sharpe-ratio\sharpe-ratio_files\dygraphs-binding-1.1.1.4\lib\timezone\moment-timezone-with-data.js to C:\Users\HIROAK~1\AppData\Local\Temp\RtmpmaysfP\Rbuild214c6a534bc\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2016-11-08-sharpe-ratio\sharpe-ratio_files\dygraphs-binding-1.1.1.4\lib\timezone\moment-timezone-with-data.js: No such file or directory
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   over-long path length
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   over-long path length
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   problem copying .\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-03-07-quandl-and-forecasting\quandl-and-forecasting_files\dygraphs-binding-1.1.1.4\lib\dygraphs\dygraph.css to C:\Users\HIROAK~1\AppData\Local\Temp\RtmpmaysfP\Rbuild214c6a534bc\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-03-07-quandl-and-forecasting\quandl-and-forecasting_files\dygraphs-binding-1.1.1.4\lib\dygraphs\dygraph.css: No such file or directory
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   problem copying .\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-03-07-quandl-and-forecasting\quandl-and-forecasting_files\dygraphs-binding-1.1.1.4\lib\dygraphs\shapes.js to C:\Users\HIROAK~1\AppData\Local\Temp\RtmpmaysfP\Rbuild214c6a534bc\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-03-07-quandl-and-forecasting\quandl-and-forecasting_files\dygraphs-binding-1.1.1.4\lib\dygraphs\shapes.js: No such file or directory
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   over-long path length
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   problem copying .\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-03-07-quandl-and-forecasting\quandl-and-forecasting_files\dygraphs-binding-1.1.1.4\lib\jquery\AUTHORS.txt to C:\Users\HIROAK~1\AppData\Local\Temp\RtmpmaysfP\Rbuild214c6a534bc\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-03-07-quandl-and-forecasting\quandl-and-forecasting_files\dygraphs-binding-1.1.1.4\lib\jquery\AUTHORS.txt: No such file or directory
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   problem copying .\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-03-07-quandl-and-forecasting\quandl-and-forecasting_files\dygraphs-binding-1.1.1.4\lib\jquery\jquery.min.js to C:\Users\HIROAK~1\AppData\Local\Temp\RtmpmaysfP\Rbuild214c6a534bc\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-03-07-quandl-and-forecasting\quandl-and-forecasting_files\dygraphs-binding-1.1.1.4\lib\jquery\jquery.min.js: No such file or directory
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   over-long path length
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   problem copying .\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-03-07-quandl-and-forecasting\quandl-and-forecasting_files\dygraphs-binding-1.1.1.4\lib\timezone\moment.js to C:\Users\HIROAK~1\AppData\Local\Temp\RtmpmaysfP\Rbuild214c6a534bc\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-03-07-quandl-and-forecasting\quandl-and-forecasting_files\dygraphs-binding-1.1.1.4\lib\timezone\moment.js: No such file or directory
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   problem copying .\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-03-07-quandl-and-forecasting\quandl-and-forecasting_files\moment-timezone-0.2.5\moment-timezone-with-data.js to C:\Users\HIROAK~1\AppData\Local\Temp\RtmpmaysfP\Rbuild214c6a534bc\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-03-07-quandl-and-forecasting\quandl-and-forecasting_files\moment-timezone-0.2.5\moment-timezone-with-data.js: No such file or directory
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   problem copying .\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-09-13-asset-volatility\asset-volatility_files\highchart-binding-0.5.0\lib\font-awesome-4.5.0\font-awesome.min.css to C:\Users\HIROAK~1\AppData\Local\Temp\RtmpmaysfP\Rbuild214c6a534bc\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-09-13-asset-volatility\asset-volatility_files\highchart-binding-0.5.0\lib\font-awesome-4.5.0\font-awesome.min.css: No such file or directory
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   over-long path length
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   over-long path length
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   over-long path length
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   over-long path length
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   over-long path length
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   over-long path length
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   problem copying .\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-09-13-asset-volatility\asset-volatility_files\highchart-binding-0.5.0\lib\highcharts-5.0.6\css\motion.css to C:\Users\HIROAK~1\AppData\Local\Temp\RtmpmaysfP\Rbuild214c6a534bc\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-09-13-asset-volatility\asset-volatility_files\highchart-binding-0.5.0\lib\highcharts-5.0.6\css\motion.css: No such file or directory
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   problem copying .\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-09-13-asset-volatility\asset-volatility_files\highchart-binding-0.5.0\lib\highcharts-5.0.6\custom\reset.js to C:\Users\HIROAK~1\AppData\Local\Temp\RtmpmaysfP\Rbuild214c6a534bc\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-09-13-asset-volatility\asset-volatility_files\highchart-binding-0.5.0\lib\highcharts-5.0.6\custom\reset.js: No such file or directory
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   over-long path length
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   problem copying .\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-09-13-asset-volatility\asset-volatility_files\highchart-binding-0.5.0\lib\highcharts-5.0.6\custom\text-symbols.js to C:\Users\HIROAK~1\AppData\Local\Temp\RtmpmaysfP\Rbuild214c6a534bc\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-09-13-asset-volatility\asset-volatility_files\highchart-binding-0.5.0\lib\highcharts-5.0.6\custom\text-symbols.js: No such file or directory
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   problem creating directory C:\Users\HIROAK~1\AppData\Local\Temp\RtmpmaysfP\Rbuild214c6a534bc\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-09-13-asset-volatility\asset-volatility_files\highchart-binding-0.5.0\lib\highcharts-5.0.6\highcharts-3d.js: No such file or directory
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   problem creating directory C:\Users\HIROAK~1\AppData\Local\Temp\RtmpmaysfP\Rbuild214c6a534bc\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-09-13-asset-volatility\asset-volatility_files\highchart-binding-0.5.0\lib\highcharts-5.0.6\highcharts-more.js: No such file or directory
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   problem creating directory C:\Users\HIROAK~1\AppData\Local\Temp\RtmpmaysfP\Rbuild214c6a534bc\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-09-13-asset-volatility\asset-volatility_files\highchart-binding-0.5.0\lib\highcharts-5.0.6\highcharts.js: No such file or directory
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   over-long path length
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   problem copying .\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-09-13-asset-volatility\asset-volatility_files\highchart-binding-0.5.0\lib\highcharts-5.0.6\modules\annotations.js to C:\Users\HIROAK~1\AppData\Local\Temp\RtmpmaysfP\Rbuild214c6a534bc\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-09-13-asset-volatility\asset-volatility_files\highchart-binding-0.5.0\lib\highcharts-5.0.6\modules\annotations.js: No such file or directory
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   problem copying .\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-09-13-asset-volatility\asset-volatility_files\highchart-binding-0.5.0\lib\highcharts-5.0.6\modules\boost.js to C:\Users\HIROAK~1\AppData\Local\Temp\RtmpmaysfP\Rbuild214c6a534bc\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-09-13-asset-volatility\asset-volatility_files\highchart-binding-0.5.0\lib\highcharts-5.0.6\modules\boost.js: No such file or directory
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   problem copying .\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-09-13-asset-volatility\asset-volatility_files\highchart-binding-0.5.0\lib\highcharts-5.0.6\modules\broken-axis.js to C:\Users\HIROAK~1\AppData\Local\Temp\RtmpmaysfP\Rbuild214c6a534bc\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-09-13-asset-volatility\asset-volatility_files\highchart-binding-0.5.0\lib\highcharts-5.0.6\modules\broken-axis.js: No such file or directory
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   over-long path length
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   problem copying .\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-09-13-asset-volatility\asset-volatility_files\highchart-binding-0.5.0\lib\highcharts-5.0.6\modules\data.js to C:\Users\HIROAK~1\AppData\Local\Temp\RtmpmaysfP\Rbuild214c6a534bc\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-09-13-asset-volatility\asset-volatility_files\highchart-binding-0.5.0\lib\highcharts-5.0.6\modules\data.js: No such file or directory
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   problem copying .\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-09-13-asset-volatility\asset-volatility_files\highchart-binding-0.5.0\lib\highcharts-5.0.6\modules\drilldown.js to C:\Users\HIROAK~1\AppData\Local\Temp\RtmpmaysfP\Rbuild214c6a534bc\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-09-13-asset-volatility\asset-volatility_files\highchart-binding-0.5.0\lib\highcharts-5.0.6\modules\drilldown.js: No such file or directory
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   problem copying .\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-09-13-asset-volatility\asset-volatility_files\highchart-binding-0.5.0\lib\highcharts-5.0.6\modules\exporting.js to C:\Users\HIROAK~1\AppData\Local\Temp\RtmpmaysfP\Rbuild214c6a534bc\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-09-13-asset-volatility\asset-volatility_files\highchart-binding-0.5.0\lib\highcharts-5.0.6\modules\exporting.js: No such file or directory
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   problem copying .\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-09-13-asset-volatility\asset-volatility_files\highchart-binding-0.5.0\lib\highcharts-5.0.6\modules\funnel.js to C:\Users\HIROAK~1\AppData\Local\Temp\RtmpmaysfP\Rbuild214c6a534bc\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-09-13-asset-volatility\asset-volatility_files\highchart-binding-0.5.0\lib\highcharts-5.0.6\modules\funnel.js: No such file or directory
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   problem copying .\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-09-13-asset-volatility\asset-volatility_files\highchart-binding-0.5.0\lib\highcharts-5.0.6\modules\heatmap.js to C:\Users\HIROAK~1\AppData\Local\Temp\RtmpmaysfP\Rbuild214c6a534bc\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-09-13-asset-volatility\asset-volatility_files\highchart-binding-0.5.0\lib\highcharts-5.0.6\modules\heatmap.js: No such file or directory
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   problem copying .\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-09-13-asset-volatility\asset-volatility_files\highchart-binding-0.5.0\lib\highcharts-5.0.6\modules\map.js to C:\Users\HIROAK~1\AppData\Local\Temp\RtmpmaysfP\Rbuild214c6a534bc\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-09-13-asset-volatility\asset-volatility_files\highchart-binding-0.5.0\lib\highcharts-5.0.6\modules\map.js: No such file or directory
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   over-long path length
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   over-long path length
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   problem copying .\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-09-13-asset-volatility\asset-volatility_files\highchart-binding-0.5.0\lib\highcharts-5.0.6\modules\solid-gauge.js to C:\Users\HIROAK~1\AppData\Local\Temp\RtmpmaysfP\Rbuild214c6a534bc\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-09-13-asset-volatility\asset-volatility_files\highchart-binding-0.5.0\lib\highcharts-5.0.6\modules\solid-gauge.js: No such file or directory
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   problem copying .\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-09-13-asset-volatility\asset-volatility_files\highchart-binding-0.5.0\lib\highcharts-5.0.6\modules\treemap.js to C:\Users\HIROAK~1\AppData\Local\Temp\RtmpmaysfP\Rbuild214c6a534bc\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-09-13-asset-volatility\asset-volatility_files\highchart-binding-0.5.0\lib\highcharts-5.0.6\modules\treemap.js: No such file or directory
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   problem copying .\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-09-13-asset-volatility\asset-volatility_files\highchart-binding-0.5.0\lib\highcharts-5.0.6\plugins\annotations.js to C:\Users\HIROAK~1\AppData\Local\Temp\RtmpmaysfP\Rbuild214c6a534bc\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-09-13-asset-volatility\asset-volatility_files\highchart-binding-0.5.0\lib\highcharts-5.0.6\plugins\annotations.js: No such file or directory
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   over-long path length
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   over-long path length
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   problem copying .\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-09-13-asset-volatility\asset-volatility_files\highchart-binding-0.5.0\lib\highcharts-5.0.6\plugins\export-csv.js to C:\Users\HIROAK~1\AppData\Local\Temp\RtmpmaysfP\Rbuild214c6a534bc\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-09-13-asset-volatility\asset-volatility_files\highchart-binding-0.5.0\lib\highcharts-5.0.6\plugins\export-csv.js: No such file or directory
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   over-long path length
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   problem copying .\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-09-13-asset-volatility\asset-volatility_files\highchart-binding-0.5.0\lib\highcharts-5.0.6\plugins\motion.js to C:\Users\HIROAK~1\AppData\Local\Temp\RtmpmaysfP\Rbuild214c6a534bc\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-09-13-asset-volatility\asset-volatility_files\highchart-binding-0.5.0\lib\highcharts-5.0.6\plugins\motion.js: No such file or directory
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   over-long path length
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   over-long path length
#>  ERROR
#> copying to build directory failed
#> Error in run(bin, args = real_cmdargs, stdout_line_callback = real_callback(stdout),  : 
#>   System command error
#> In addition: Warning messages:
#> 1: In utils::untar(tarfile, extras = "--force-local", ...) :
#>   ‘tar.exe -zxf "C:\Users\HIROAK~1\AppData\Local\Temp\RtmpYLoNHr\file1cd831c4444e.tar.gz" -C "C:/Users/HIROAK~1/AppData/Local/Temp/RtmpYLoNHr/remotes1cd8517318fd" --force-local’ returned error code 1
#> 2: In system(cmd, intern = TRUE) :
#>  
#>  Error in run(bin, args = real_cmdargs, stdout_line_callback = real_callback(stdout),  : 
#>   System command error 
@gaborcsardi

This comment has been minimized.

Copy link
Member

commented Sep 22, 2018

remotes::install_github("rstudio/radix@c3dba83")
#> Downloading GitHub repo rstudio/radix@c3dba83
#> tar.exe: Option --force-local is not supported
#> Usage:
#>   List:    tar.exe -tf <archive-filename>
#>   Extract: tar.exe -xf <archive-filename>
#>   Create:  tar.exe -cf <archive-filename> [filenames...]
#>   Help:    tar.exe --help
#> Skipping 1 packages ahead of CRAN: rlang
#> Running "C:/PROGRA~1/R/R-35~1.1/bin/x64/Rcmd.exe" build \
#>   "C:\Users\hiroaki-yutani\AppData\Local\Temp\RtmpYLoNHr\remotes1cd8517318fd\rstudio-radix-c3dba83" \
#>   --no-resave-data --no-resave-data --no-manual --no-build-vignettes
#> * checking for file 'C:\Users\hiroaki-yutani\AppData\Local\Temp\RtmpYLoNHr\remotes1cd8517318fd\rstudio-radix-c3dba83/DESCRIPTION' ... OK
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   problem copying .\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2016-11-08-sharpe-ratio\sharpe-ratio_files\dygraphs-binding-1.1.1.4\lib\timezone\moment-timezone-with-data.js to C:\Users\HIROAK~1\AppData\Local\Temp\RtmpmaysfP\Rbuild214c6a534bc\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2016-11-08-sharpe-ratio\sharpe-ratio_files\dygraphs-binding-1.1.1.4\lib\timezone\moment-timezone-with-data.js: No such file or directory
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   over-long path length
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   over-long path length
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   problem copying .\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-03-07-quandl-and-forecasting\quandl-and-forecasting_files\dygraphs-binding-1.1.1.4\lib\dygraphs\dygraph.css to C:\Users\HIROAK~1\AppData\Local\Temp\RtmpmaysfP\Rbuild214c6a534bc\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-03-07-quandl-and-forecasting\quandl-and-forecasting_files\dygraphs-binding-1.1.1.4\lib\dygraphs\dygraph.css: No such file or directory
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   problem copying .\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-03-07-quandl-and-forecasting\quandl-and-forecasting_files\dygraphs-binding-1.1.1.4\lib\dygraphs\shapes.js to C:\Users\HIROAK~1\AppData\Local\Temp\RtmpmaysfP\Rbuild214c6a534bc\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-03-07-quandl-and-forecasting\quandl-and-forecasting_files\dygraphs-binding-1.1.1.4\lib\dygraphs\shapes.js: No such file or directory
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   over-long path length
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   problem copying .\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-03-07-quandl-and-forecasting\quandl-and-forecasting_files\dygraphs-binding-1.1.1.4\lib\jquery\AUTHORS.txt to C:\Users\HIROAK~1\AppData\Local\Temp\RtmpmaysfP\Rbuild214c6a534bc\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-03-07-quandl-and-forecasting\quandl-and-forecasting_files\dygraphs-binding-1.1.1.4\lib\jquery\AUTHORS.txt: No such file or directory
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   problem copying .\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-03-07-quandl-and-forecasting\quandl-and-forecasting_files\dygraphs-binding-1.1.1.4\lib\jquery\jquery.min.js to C:\Users\HIROAK~1\AppData\Local\Temp\RtmpmaysfP\Rbuild214c6a534bc\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-03-07-quandl-and-forecasting\quandl-and-forecasting_files\dygraphs-binding-1.1.1.4\lib\jquery\jquery.min.js: No such file or directory
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   over-long path length
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   problem copying .\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-03-07-quandl-and-forecasting\quandl-and-forecasting_files\dygraphs-binding-1.1.1.4\lib\timezone\moment.js to C:\Users\HIROAK~1\AppData\Local\Temp\RtmpmaysfP\Rbuild214c6a534bc\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-03-07-quandl-and-forecasting\quandl-and-forecasting_files\dygraphs-binding-1.1.1.4\lib\timezone\moment.js: No such file or directory
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   problem copying .\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-03-07-quandl-and-forecasting\quandl-and-forecasting_files\moment-timezone-0.2.5\moment-timezone-with-data.js to C:\Users\HIROAK~1\AppData\Local\Temp\RtmpmaysfP\Rbuild214c6a534bc\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-03-07-quandl-and-forecasting\quandl-and-forecasting_files\moment-timezone-0.2.5\moment-timezone-with-data.js: No such file or directory
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   problem copying .\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-09-13-asset-volatility\asset-volatility_files\highchart-binding-0.5.0\lib\font-awesome-4.5.0\font-awesome.min.css to C:\Users\HIROAK~1\AppData\Local\Temp\RtmpmaysfP\Rbuild214c6a534bc\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-09-13-asset-volatility\asset-volatility_files\highchart-binding-0.5.0\lib\font-awesome-4.5.0\font-awesome.min.css: No such file or directory
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   over-long path length
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   over-long path length
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   over-long path length
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   over-long path length
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   over-long path length
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   over-long path length
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   problem copying .\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-09-13-asset-volatility\asset-volatility_files\highchart-binding-0.5.0\lib\highcharts-5.0.6\css\motion.css to C:\Users\HIROAK~1\AppData\Local\Temp\RtmpmaysfP\Rbuild214c6a534bc\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-09-13-asset-volatility\asset-volatility_files\highchart-binding-0.5.0\lib\highcharts-5.0.6\css\motion.css: No such file or directory
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   problem copying .\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-09-13-asset-volatility\asset-volatility_files\highchart-binding-0.5.0\lib\highcharts-5.0.6\custom\reset.js to C:\Users\HIROAK~1\AppData\Local\Temp\RtmpmaysfP\Rbuild214c6a534bc\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-09-13-asset-volatility\asset-volatility_files\highchart-binding-0.5.0\lib\highcharts-5.0.6\custom\reset.js: No such file or directory
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   over-long path length
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   problem copying .\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-09-13-asset-volatility\asset-volatility_files\highchart-binding-0.5.0\lib\highcharts-5.0.6\custom\text-symbols.js to C:\Users\HIROAK~1\AppData\Local\Temp\RtmpmaysfP\Rbuild214c6a534bc\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-09-13-asset-volatility\asset-volatility_files\highchart-binding-0.5.0\lib\highcharts-5.0.6\custom\text-symbols.js: No such file or directory
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   problem creating directory C:\Users\HIROAK~1\AppData\Local\Temp\RtmpmaysfP\Rbuild214c6a534bc\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-09-13-asset-volatility\asset-volatility_files\highchart-binding-0.5.0\lib\highcharts-5.0.6\highcharts-3d.js: No such file or directory
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   problem creating directory C:\Users\HIROAK~1\AppData\Local\Temp\RtmpmaysfP\Rbuild214c6a534bc\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-09-13-asset-volatility\asset-volatility_files\highchart-binding-0.5.0\lib\highcharts-5.0.6\highcharts-more.js: No such file or directory
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   problem creating directory C:\Users\HIROAK~1\AppData\Local\Temp\RtmpmaysfP\Rbuild214c6a534bc\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-09-13-asset-volatility\asset-volatility_files\highchart-binding-0.5.0\lib\highcharts-5.0.6\highcharts.js: No such file or directory
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   over-long path length
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   problem copying .\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-09-13-asset-volatility\asset-volatility_files\highchart-binding-0.5.0\lib\highcharts-5.0.6\modules\annotations.js to C:\Users\HIROAK~1\AppData\Local\Temp\RtmpmaysfP\Rbuild214c6a534bc\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-09-13-asset-volatility\asset-volatility_files\highchart-binding-0.5.0\lib\highcharts-5.0.6\modules\annotations.js: No such file or directory
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   problem copying .\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-09-13-asset-volatility\asset-volatility_files\highchart-binding-0.5.0\lib\highcharts-5.0.6\modules\boost.js to C:\Users\HIROAK~1\AppData\Local\Temp\RtmpmaysfP\Rbuild214c6a534bc\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-09-13-asset-volatility\asset-volatility_files\highchart-binding-0.5.0\lib\highcharts-5.0.6\modules\boost.js: No such file or directory
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   problem copying .\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-09-13-asset-volatility\asset-volatility_files\highchart-binding-0.5.0\lib\highcharts-5.0.6\modules\broken-axis.js to C:\Users\HIROAK~1\AppData\Local\Temp\RtmpmaysfP\Rbuild214c6a534bc\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-09-13-asset-volatility\asset-volatility_files\highchart-binding-0.5.0\lib\highcharts-5.0.6\modules\broken-axis.js: No such file or directory
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   over-long path length
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   problem copying .\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-09-13-asset-volatility\asset-volatility_files\highchart-binding-0.5.0\lib\highcharts-5.0.6\modules\data.js to C:\Users\HIROAK~1\AppData\Local\Temp\RtmpmaysfP\Rbuild214c6a534bc\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-09-13-asset-volatility\asset-volatility_files\highchart-binding-0.5.0\lib\highcharts-5.0.6\modules\data.js: No such file or directory
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   problem copying .\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-09-13-asset-volatility\asset-volatility_files\highchart-binding-0.5.0\lib\highcharts-5.0.6\modules\drilldown.js to C:\Users\HIROAK~1\AppData\Local\Temp\RtmpmaysfP\Rbuild214c6a534bc\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-09-13-asset-volatility\asset-volatility_files\highchart-binding-0.5.0\lib\highcharts-5.0.6\modules\drilldown.js: No such file or directory
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   problem copying .\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-09-13-asset-volatility\asset-volatility_files\highchart-binding-0.5.0\lib\highcharts-5.0.6\modules\exporting.js to C:\Users\HIROAK~1\AppData\Local\Temp\RtmpmaysfP\Rbuild214c6a534bc\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-09-13-asset-volatility\asset-volatility_files\highchart-binding-0.5.0\lib\highcharts-5.0.6\modules\exporting.js: No such file or directory
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   problem copying .\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-09-13-asset-volatility\asset-volatility_files\highchart-binding-0.5.0\lib\highcharts-5.0.6\modules\funnel.js to C:\Users\HIROAK~1\AppData\Local\Temp\RtmpmaysfP\Rbuild214c6a534bc\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-09-13-asset-volatility\asset-volatility_files\highchart-binding-0.5.0\lib\highcharts-5.0.6\modules\funnel.js: No such file or directory
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   problem copying .\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-09-13-asset-volatility\asset-volatility_files\highchart-binding-0.5.0\lib\highcharts-5.0.6\modules\heatmap.js to C:\Users\HIROAK~1\AppData\Local\Temp\RtmpmaysfP\Rbuild214c6a534bc\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-09-13-asset-volatility\asset-volatility_files\highchart-binding-0.5.0\lib\highcharts-5.0.6\modules\heatmap.js: No such file or directory
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   problem copying .\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-09-13-asset-volatility\asset-volatility_files\highchart-binding-0.5.0\lib\highcharts-5.0.6\modules\map.js to C:\Users\HIROAK~1\AppData\Local\Temp\RtmpmaysfP\Rbuild214c6a534bc\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-09-13-asset-volatility\asset-volatility_files\highchart-binding-0.5.0\lib\highcharts-5.0.6\modules\map.js: No such file or directory
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   over-long path length
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   over-long path length
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   problem copying .\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-09-13-asset-volatility\asset-volatility_files\highchart-binding-0.5.0\lib\highcharts-5.0.6\modules\solid-gauge.js to C:\Users\HIROAK~1\AppData\Local\Temp\RtmpmaysfP\Rbuild214c6a534bc\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-09-13-asset-volatility\asset-volatility_files\highchart-binding-0.5.0\lib\highcharts-5.0.6\modules\solid-gauge.js: No such file or directory
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   problem copying .\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-09-13-asset-volatility\asset-volatility_files\highchart-binding-0.5.0\lib\highcharts-5.0.6\modules\treemap.js to C:\Users\HIROAK~1\AppData\Local\Temp\RtmpmaysfP\Rbuild214c6a534bc\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-09-13-asset-volatility\asset-volatility_files\highchart-binding-0.5.0\lib\highcharts-5.0.6\modules\treemap.js: No such file or directory
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   problem copying .\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-09-13-asset-volatility\asset-volatility_files\highchart-binding-0.5.0\lib\highcharts-5.0.6\plugins\annotations.js to C:\Users\HIROAK~1\AppData\Local\Temp\RtmpmaysfP\Rbuild214c6a534bc\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-09-13-asset-volatility\asset-volatility_files\highchart-binding-0.5.0\lib\highcharts-5.0.6\plugins\annotations.js: No such file or directory
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   over-long path length
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   over-long path length
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   problem copying .\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-09-13-asset-volatility\asset-volatility_files\highchart-binding-0.5.0\lib\highcharts-5.0.6\plugins\export-csv.js to C:\Users\HIROAK~1\AppData\Local\Temp\RtmpmaysfP\Rbuild214c6a534bc\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-09-13-asset-volatility\asset-volatility_files\highchart-binding-0.5.0\lib\highcharts-5.0.6\plugins\export-csv.js: No such file or directory
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   over-long path length
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   problem copying .\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-09-13-asset-volatility\asset-volatility_files\highchart-binding-0.5.0\lib\highcharts-5.0.6\plugins\motion.js to C:\Users\HIROAK~1\AppData\Local\Temp\RtmpmaysfP\Rbuild214c6a534bc\rstudio-radix-c3dba83\examples\websites\reproducible-finance-with-r\_posts\2017-09-13-asset-volatility\asset-volatility_files\highchart-binding-0.5.0\lib\highcharts-5.0.6\plugins\motion.js: No such file or directory
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   over-long path length
#> Warning in file.copy(pkgname, Tdir, recursive = TRUE, copy.date = TRUE) :
#>   over-long path length
#>  ERROR
#> copying to build directory failed
#> Error in run(bin, args = real_cmdargs, stdout_line_callback = real_callback(stdout),  : 
#>   System command error
#> In addition: Warning messages:
#> 1: In utils::untar(tarfile, extras = "--force-local", ...) :
#>   ‘tar.exe -zxf "C:\Users\HIROAK~1\AppData\Local\Temp\RtmpYLoNHr\file1cd831c4444e.tar.gz" -C "C:/Users/HIROAK~1/AppData/Local/Temp/RtmpYLoNHr/remotes1cd8517318fd" --force-local’ returned error code 1
#> 2: In system(cmd, intern = TRUE) :
#>  
#>  Error in run(bin, args = real_cmdargs, stdout_line_callback = real_callback(stdout),  : 
#>   System command error 
@gaborcsardi

This comment has been minimized.

Copy link
Member

commented Sep 22, 2018

OK, I can reproduce this.

So, this is coming from R CMD build, i.e. base R. We'll see what we can do about it.

The warnings should be actually errors, because R does not even try to copy the file after the warning. So even if the build somehow magically succeeds, some files will be missing, and you get a broken
package. (Arrrrrgh.)

@gaborcsardi gaborcsardi reopened this Sep 22, 2018

@yutannihilation

This comment has been minimized.

Copy link
Contributor

commented Sep 22, 2018

Oh, thanks for confirming. I didn't notice R CMD build was the heart of the problem....

you get a broken package

Opps...

@gaborcsardi

This comment has been minimized.

Copy link
Member

commented Sep 22, 2018

One workaround that often works is to skip building the package:

remotes::install_github("rstudio/radix@c3dba83", build = FALSE)
@gaborcsardi

This comment has been minimized.

Copy link
Member

commented Oct 2, 2018

FWIW, this is already fixed for the radix package, simply by using shorter paths.

As for the general problem, I don't think we can do much, maybe detect the reason of the failure, and point people to this issue?

@yutannihilation

This comment has been minimized.

Copy link
Contributor

commented Oct 2, 2018

Yeah, I know. That's why I specify the commit @c3dba83 where the problem is not fixed yet :) I just wanted to tell you that there's the general problem.

I don't think we can do much, maybe detect the reason of the failure, and point people to this issue?

I totally agree with you!

gaborcsardi added a commit that referenced this issue Oct 2, 2018

@gaborcsardi

This comment has been minimized.

Copy link
Member

commented Oct 2, 2018

This is partially fixed by #178. The other half will be fixed by solving r-lib/pkgbuild#48

Now you will get:

It seems that this package contains files with very long paths.
This is not supported on most Windows versions. Please contant the
package authors and tell them about this. See this GitHub issue
for more details: https://github.com/r-lib/remotes/issues/84

gaborcsardi added a commit that referenced this issue Oct 2, 2018

Helpful message when build fails for long paths (#178)
* Helpful message when build fails for long paths

On windows. Closes #84.

* Fix typo in message

* Refactor long path msg into function
@yutannihilation

This comment has been minimized.

Copy link
Contributor

commented Oct 2, 2018

Thanks for the nice improvement!

gaborcsardi added a commit that referenced this issue Oct 3, 2018

Long path help msg in non-en locales
The error string is different in this case.
Improves #84.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.