Skip to content
This repository has been archived by the owner on May 27, 2020. It is now read-only.

dt revdep needs to accept permanent lib dir #4

Open
berndbischl opened this issue Jan 27, 2015 · 6 comments
Open

dt revdep needs to accept permanent lib dir #4

berndbischl opened this issue Jan 27, 2015 · 6 comments

Comments

@berndbischl
Copy link
Contributor

the docs of check_cran say:

libpath: Path to library to store dependencies packages - if you you're doing this a lot it's a good idea to pick a directory and stick with it so you don't have to download all the packages every time

We currently set to temfile("Rlib"). This ensures that always all deps are downloaded again. For BBmisc this is 130 pkgs, even for BE this is extremely slow.

@berndbischl berndbischl changed the title dt revdep need to accept permanent lib dir dt revdep needs to accept permanent lib dir Jan 27, 2015
@berndbischl
Copy link
Contributor Author

I have set the path to USERHOME/.dt/rlib now.
This makes repeated calls at least cheaper.

I also had to touch the handling of the return value of check_cran again. IIRC I had to do this before. The R docs of this function also seem wrong.

@berndbischl
Copy link
Contributor Author

More importantly: Why dont we call revdep_check?

It is a bit annoying that apparently nobody besides me seems to call this function?
I have wasted now too much time on this. I pushed a maybe not perfect version.

It does not set an exit code, but at least it runs.
It should be reviewed.

@mllg
Copy link
Member

mllg commented Jan 27, 2015

he docs of check_cran say:

libpath: Path to library to store dependencies packages - if you you're doing this a lot it's a good idea to pick a directory and stick with it so you don't have to download all the packages every time

We currently set to temfile("Rlib"). This ensures that always all deps are downloaded again. For BBmisc this is 130 pkgs, even for BE this is extremely slow.

This function is marked as internal. revdep_check uses the option devtools.revdep.libpath, and so should we.

I also had to touch the handling of the return value of check_cran again. IIRC I had to do this before.

Nope, you did not.

More importantly: Why dont we call revdep_check?

Because I wanted to have an exit code and more control over the output. Especially the last lines printing the failed packages was extremely helpful.

It is a bit annoying that apparently nobody besides me seems to call this function?
I have wasted now too much time on this. I pushed a maybe not perfect version.
It does not set an exit code, but at least it runs.
It should be reviewed.

I don't see your point. The previous version was working for me (and returning a meaningful exit code was replacing a cat with an exit). I would rather revert then "review" the unfinished code.

@berndbischl
Copy link
Contributor Author

Nope, you did not.

I dont get what is happening here.

  1. Check the logs. From December.

  2. Then revert the change. Then you a reverse check of BBmisc, with current packages from CRAN.
    (Which you should have done anyway)
    Then we can continue.

@berndbischl
Copy link
Contributor Author

And also:

This function is marked as internal.

Yes exactly. Which is the the only thing that makes sense in your post. And that implies we should not use it.
I wasted a lot of time yesterday, because the function was not working. Then I tried to repair this, figured out it is documented incorrectly and reported that (at devtools), more time wasted.

The conclusion is: Don't rely on stuff other people mark as internal. Otherwise this happens.

It is also possible to use the output of the public function to generate an exit code, just like before.
I just have other things todo now, and could not do this during a long night yesterday.

@mllg
Copy link
Member

mllg commented Jan 27, 2015

I dont get what is happening here.

  1. Check the logs. From December.

This was not reverted. The exit code stuff has been there since December.

  1. Then revert the change. Then you a reverse check of BBmisc, with current packages from CRAN.
    (Which you should have done anyway)
    Then we can continue.

Worked perfectly with devtools 1.6.1.

It is also possible to use the output of the public function to generate an exit code, just like before.
I just have other things todo now, and could not do this during a long night yesterday.

Then create a new branch for unfinished work instead of pushing it to the master.

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