How to I install TMB from github?

289 views
Skip to first unread message

Guilherme Parreira

unread,
Aug 26, 2020, 5:14:06 PM8/26/20
to TMB Users
I tried devtools::install_github("kaskr/adcomp") but it didn't work.

I am looking for the TMB version because it is thread safe (as pointed out from an Issue).

Thanks

Ben Bolker

unread,
Aug 26, 2020, 5:48:06 PM8/26/20
to TMB Users
  Try

  devtools::install_github("kaskr/adcomp/TMB")


  This one turned out to be easy, but in the future you should give us more information about what "didn't work" means.  You probably got this error message:

---
Error: Failed to install 'unknown package' from GitHub:
  HTTP error 404.
  Not Found

  Did you spell the repo owner (`kaskr`) and repo name (`adcomp`) correctly?
  - If spelling is correct, check that you have the required permissions to access the repo.
---
 
fortunes::fortune("smoke")

The phrase "does not work" is not very helpful, it can mean quite a few things
including:
* Your computer exploded.
* No explosion, but smoke is pouring out the back and microsoft's "NoSmoke"
utility is not compatible with your power supply.
* The computer stopped working.
* The computer sits around on the couch all day eating chips and watching talk
shows.
* The computer has started picketing your house shouting catchy slogans and
demanding better working conditions and an increase in memory.
* Everything went dark and you cannot check the cables on the back of the
computer because the lights are off due to the power outage.
* R crashed, but the other programs are still working.
* R gave an error message and stopped processing your code after running for a
while.
* R gave an error message without running any of your code (and is waiting for
your next command).
* R is still running your code and the time has exceeded your patience so you
think it has hung.
* R completed and returned a result, but also gave warnings.
* R completed your command, but gave an incorrect answer.
* R completed your command but the answer is different from what you expect
(but is correct according to the documentation).

There are probably others. Running your code I think the answer is the last one.
   -- Greg Snow
      R-help (April 2012)

Guilherme Parreira

unread,
Aug 26, 2020, 8:20:10 PM8/26/20
to TMB Users
Thank you Ben, sorry for short description.

Yes, I got the error message you mentioned (didn't find the repository).

  devtools::install_github("kaskr/adcomp/TMB") installed the package correctly.

Cheers
Reply all
Reply to author
Forward
0 new messages