install_github() error #245

Closed
zhenglei-gao opened this Issue Feb 5, 2013 · 5 comments

Projects

None yet

2 participants

@zhenglei-gao

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' ...
** R
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':
  kingraph.r
  kinplot.r
  FOCUS2006A.r
  FOCUS2006B.r
  FOCUS2006C.r
  FOCUS2006D.r
  modFit1.r
  IRLSkinfit.full.r
  mkinfit.full.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?

@zhenglei-gao

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:
  'autolayout'

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?

@hadley
Owner
hadley commented Feb 5, 2013

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)

@zhenglei-gao

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.

@zhenglei-gao

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.

@hadley
Owner
hadley commented Feb 6, 2013

It now installs for me.

@hadley hadley closed this Feb 6, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment