[R] Package 'data.table' in version R-3.5.0 not successfully being installed

Fox, John j|ox @end|ng |rom mcm@@ter@c@
Thu Apr 26 16:33:28 CEST 2018


Dear A.K. Singh,

As you discovered, the data.table package has an error under R 3.5.0 that prevents CRAN from distributing a Windows binary for the package. The reason that you weren't able to install the package from source is apparently that you haven't installed the R package-building tools for Windows. See <https://cran.r-project.org/bin/windows/Rtools/>.

Because a number of users of my Rcmdr and car packages have contacted me with a similar issue, as a temporary work-around I've placed a Windows binary for the data.table package on my website at <https://socialsciences.mcmaster.ca/jfox/.Pickup/data.table_1.10.4-3.zip>. You should be able to install the package from there via the command

	install.packages("https://socialsciences.mcmaster.ca/jfox/.Pickup/data.table_1.10.4-3.zip", repos=NULL, type="win.binary")

I expect that this problem will go away when the maintainer of the data.table package fixes the error.

I hope this helps,
 John

--------------------------------------
John Fox, Professor Emeritus
McMaster University
Hamilton, Ontario, Canada
Web: socialsciences.mcmaster.ca/jfox/



> -----Original Message-----
> From: R-help [mailto:r-help-bounces using r-project.org] On Behalf Of Akhilesh
> Singh
> Sent: Thursday, April 26, 2018 8:08 AM
> To: r-help mailing list <r-help using r-project.org>
> Subject: [R] Package 'data.table' in version R-3.5.0 not successfully
> being installed
> 
> Dear Sir,
> 
> I am using R on Windows OS platform. I upgraded my R-system to version
> R-3.5.0. While upgrading my libraries in R as well as in RStudio, I am
> stuck up in the package 'data.table', which is required by many other
> packages in R-codes in my R-Markdown files.
> 
> I tried to install 'data.table' from "USA-berkely" and "UK-bristol"  as
> well as "RStudio" mirrors when the following errors are being shown:
> 
> From  USA-berkely and UK-bristol mirrors:
> =================================
> Package which is only available in source form, and may need
>   compilation of C/C++/Fortran: ‘data.table’
>   These will not be installed
> Warning message:
> In download.file(url, destfile = f, quiet = TRUE) :
>   InternetOpenUrl failed: ''
> 
> From RStudio mirror:
> ================
> Package which is only available in source form, and may need compilation
> of
>   C/C++/Fortran: ‘data.table’
>   These will not be installed
> 
> Afterwards, I consulted google users, I downloaded the source package:
> "data.table_1.10.4-3.tar.gz" from CRAN, stored it on desktop, and tried
> following command for installing from source only:
> 
> 
> install.packages("C:\\Users\\Dr. A.K.
> Singh\\Desktop\\data.table_1.10.4-3.tar.gz", repos = NULL,
> type="source")
> 
> This generated following errors messages:
> 
> > install.packages("C:\\Users\\Dr. A.K.
> Singh\\Desktop\\data.table_1.10.4-3.tar.gz", repos = NULL,
> type="source") Installing package into ‘C:/Users/Dr. A.K.
> Singh/Documents/R/win-library/3.5’
> (as ‘lib’ is unspecified)
> * installing *source* package 'data.table' ...
> ** package 'data.table' successfully unpacked and MD5 sums checked
> ** libs
> Warning in system(cmd) : 'make' not found
> ERROR: compilation failed for package 'data.table'
> * removing 'C:/Users/Dr. A.K. Singh/Documents/R/win-
> library/3.5/data.table'
> * restoring previous 'C:/Users/Dr. A.K.
> Singh/Documents/R/win-library/3.5/data.table'
> In R CMD INSTALL
> Warning message:
> In install.packages("C:\\Users\\Dr. A.K.
> Singh\\Desktop\\data.table_1.10.4-3.tar.gz",  :
>   installation of package
> ‘C:/Users/DRAK~1.SIN/Desktop/data.table_1.10.4-3.tar.gz’ had non-zero
> exit status
> >
> 
> 
> I is requested to kindly help. I was writing a book using R-Markdown.
> And I am stuck up as described above.
> 
> Dr. A.K. Singh
> Professor and Head
> Department of Agricultural Statistics
> Indira Gandhi Krishi Vishwavidyalaya
> Raipur
> Chhattisgarh
> India
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-
> guide.html
> and provide commented, minimal, self-contained, reproducible code.


More information about the R-help mailing list