aluby / blackboxstudyR

R package to fit basic IRT models to FBI Black Box Data.
2 stars 1 forks source link

Package can't install from github, devtools::check() fails #1

Open sctyner opened 5 years ago

sctyner commented 5 years ago

Hi Amanda, thanks for putting your package up!

Just letting you know that it fails to install from Github. I forked and cloned to my machine and I'm also running into issues. Here's what I get when I run r devtools::install_github("aluby/blackboxstudyR").

checking for file ‘/private/var/folders/n1/j7r8ntqj24lg0qsq6nwtq6k40000gn/T/RtmplkmYyv/remotesc62e1dfcd9e6/aluby-blackboxstudyR-aa6f045/DESCRIPTION’ ...
─  preparing ‘blackboxstudyR’:
✔  checking DESCRIPTION meta-information ...
─  cleaning src
─  checking for LF line-endings in source and make files and shell scripts
─  checking for empty or unneeded directories
─  looking to see if a ‘data/datalist’ file should be added
─  building ‘blackboxstudyR_0.1.0.tar.gz’ (1.4s)

Installing package into ‘/Users/sctyner/Library/R/3.x/library’
(as ‘lib’ is unspecified)
* installing *source* package ‘blackboxstudyR’ ...
** libs
Error: (converted from warning) no source files found
* removing ‘/Users/sctyner/Library/R/3.x/library/blackboxstudyR’
* restoring previous ‘/Users/sctyner/Library/R/3.x/library/blackboxstudyR’
Error in i.p(...) : 
  (converted from warning) installation of package ‘/var/folders/n1/j7r8ntqj24lg0qsq6nwtq6k40000gn/T//RtmplkmYyv/filec62e7f1184dd/blackboxstudyR_0.1.0.tar.gz’ had non-zero exit status

I'm acutely concerned about the Error: (converted from warning) no source files found message. I'm working on the package on my system, but I thought I'd give you the heads up to look for a pull request. Do you have any idea what's going on?

My system info: R version 3.5.2 (2018-12-20) -- "Eggshell Igloo" Platform: x86_64-apple-darwin15.6.0 (64-bit)

aluby commented 5 years ago

I made a few changes and devtools::check() is passing on my machine now (with 1 warning and 2 notes) -- I'm still getting the Warning: no source files found when installing via github but it is not giving me an error.

I'll keep digging into the no source files warning!

aluby commented 5 years ago

Ok, actually removed the src directory and no longer getting installation warnings from devtools::install_github

sctyner commented 5 years ago

Have you looked at the rstantools package? I reconfigured blackboxstudyR using it here. It installs on my system (albeit very slowly): devtools::install_github("sctyner/blackboxstudyR")

aluby commented 5 years ago

Ah, yes! I did come across that and put it on my to-do list and promptly forgot about it. Happy to use that configuration. Not sure what the best way is to merge? Going to change the way the model output is stored to speed up installation.

sctyner commented 5 years ago

I'll go ahead and submit a pull request!