Bug 16302 - install.packages(keep_outputs=) misplaces file.out
Summary: install.packages(keep_outputs=) misplaces file.out
Status: NEW
Alias: None
Product: R
Classification: Unclassified
Component: Installation (show other bugs)
Version: R 3.1.2
Hardware: Other Linux-Debian
: P5 minor
Assignee: R-core
Depends on:
Reported: 2015-04-06 08:35 UTC by s3141p
Modified: 2015-04-06 08:35 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description s3141p 2015-04-06 08:35:25 UTC
R version 3.1.3 - note: bugzilla form input stops as 3.1.2
    package.name, # "Matrix" -- must invoke compiler step
    repos = repos, # "http://cran.rstudio.com"
    keep_outputs = destdir, # adds *.out, destdir = "local.package.repo"
    destdir = destdir, # keeps *.tar.gz
    verbose = TRUE
Run R with setcwd() equals to the PARENT directory of local.package.repo (destdir).

Bug: WHILE package Matrix is being compiled, file Matrix.out is created in the PARENT directory instead of in the destdir directory. Once compilation is complete Matrix.out is moved to destdir where it should be all the time.

Classify this as either a documentation or a code bug. As it stands now, the user doesn't know that install.packages() can override a Matrix.out file in the current directory.