I'm getting a non-zero exit status when trying to install onto a Windows machine. I have not had this issue when previously installing on Linux.
NOTE: I am not using the most recent versions of digest
or data.table
. The most recent versions of these two packages require compiling from source which is proving difficult. I have the most recent binary versions of these packages installed. I don't think this would be the problem but it may be.
My guess is that when the required data files are called using the the read.table() function the 'slashes' in the directory path are facing the 'wrong' way, i.e. for Unix filesystems.
I have pasted the Console output below. I'll keep working on a fix and report back once successful, but in the meantime let me know if you have any ideas.
devtools::install_github("CfSOtago/GREENGridData")
Downloading GitHub repo CfSOtago/GREENGridData@HEAD
These packages have more recent versions available.
It is recommended to update all of them.
Which would you like to update?
1: All
2: CRAN packages only
3: None
4: digest (0.6.25 -> 0.6.26) [CRAN]
5: data.table (1.13.0 -> 1.13.2) [CRAN]
Enter one or more numbers, or an empty line to skip updates:3
√ checking for file 'C:\Users\ParkerR\AppData\Local\Temp\RtmpSeTpqr\remotes53407a2343e8\CfSOtago-GREENGridData-3417279/DESCRIPTION' ...
- preparing 'GREENGridData': (5.6s)
√ checking DESCRIPTION meta-information ...
- excluding invalid files
Subdirectory 'R' contains invalid file names:
'README.md'
Subdirectory 'man' contains invalid file names:
'README.md'
- checking for LF line-endings in source and make files and shell scripts
- checking for empty or unneeded directories
- building 'GREENGridData_1.0.tar.gz'
Installing package into ‘C:/Users/ParkerR/Anaconda3/envs/r/Rpackages’
(as ‘lib’ is unspecified)
'\aklfs02pi\home1$\ParkerR\Documents'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported. Defaulting to Windows directory.
- installing source package 'GREENGridData' ...
** using staged installation
** R
** data
*** moving datasets to lazyload DB
Warning in read.table(...) :
incomplete final line found by readTableHeader on 'C:\Users\ParkerR\Anaconda3\envs\r\Rpackages\00LOCK-GREENGridData\00new\GREENGridData/data/circuitsToSum_v1.0.csv'
Warning in read.table(...) :
incomplete final line found by readTableHeader on 'C:\Users\ParkerR\Anaconda3\envs\r\Rpackages\00LOCK-GREENGridData\00new\GREENGridData/data/circuitsToSum_v1.0.csv'
Warning in read.table(...) :
incomplete final line found by readTableHeader on 'C:\Users\ParkerR\Anaconda3\envs\r\Rpackages\00LOCK-GREENGridData\00new\GREENGridData/data/circuitsToSum_v1.1.csv'
Warning in read.table(...) :
incomplete final line found by readTableHeader on 'C:\Users\ParkerR\Anaconda3\envs\r\Rpackages\00LOCK-GREENGridData\00new\GREENGridData/data/circuitsToSum_v1.1.csv'
Warning in read.table(...) :
invalid input found on input connection 'C:\Users\ParkerR\Anaconda3\envs\r\Rpackages\00LOCK-GREENGridData\00new\GREENGridData/data/dstNZDates.csv'
Error in read.table(...) : no lines available in input
ERROR: lazydata failed for package 'GREENGridData'
- removing 'C:/Users/ParkerR/Anaconda3/envs/r/Rpackages/GREENGridData'
Error: Failed to install 'GREENGridData' from GitHub:
(converted from warning) installation of package ‘C:/Users/ParkerR/AppData/Local/Temp/RtmpSeTpqr/file53404cd9fd0/GREENGridData_1.0.tar.gz’ had non-zero exit status