I think this might be my own problem but maybe someone here can easily point out what I did wrong.
I tried install_github("KineticEval",username="zhenglei-gao") and got the following error:
* installing *source* package 'KineticEval' ...
Error in .install_package_code_files(".", instdir) :
files in 'Collate' field missing from 'C:/Users/z.gao/AppData/Local/Temp/RtmpUzWWYn/R.INSTALLd3c17515a0/KineticEval/R':
ERROR: unable to collate and parse R files for package 'KineticEval'
* removing 'C:/Users/z.gao/R-dev/KineticEval'
When I do check() and build() locally the tar ball has all the R files included in the /R directory. I don't know what this error means?
A related question:
I don't know what I did but when I run check()again it gives a warning which did not exist before:
* checking for missing documentation entries ... WARNING
Undocumented code objects:
Strangely, the autolayout.Rd file exists under the /man directory after running roxygenize but not in the built tar ball. What could cause the problem?
Hmmm, the first problem looks like it's because you have .R and .r files in R/ and all the files in DESCRIPTION collate have .r extensions. This may be a bug in roxygen (if you're using that to generate collate) or possible some sort of case sensitivity mismatch (if you're on windows)
I have tried to remove all the .R files and add back as .r files back to Github, but the same error occurs. I will check again if there is other mismatch.
In case anyone is interested, for the second problem, the cause is in .Rbuildignore file. I put out there, which makes the build overlooked the function autolayout.
It now installs for me.