Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install_github() error #245

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

install_github() error #245

zhenglei-gao opened this issue Feb 5, 2013 · 5 comments

Comments

@zhenglei-gao
Copy link

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
Copy link
Author

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
Copy link
Member

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
Copy link
Author

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
Copy link
Author

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
Copy link
Member

hadley commented Feb 6, 2013

It now installs for me.

@hadley hadley closed this as completed Feb 6, 2013
@lock lock bot locked and limited conversation to collaborators Sep 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants