Skip to content

r-dt: new versions#10261

Merged
adamjstewart merged 3 commits intospack:developfrom
odoublewen:update_r-dt
Jan 8, 2019
Merged

r-dt: new versions#10261
adamjstewart merged 3 commits intospack:developfrom
odoublewen:update_r-dt

Conversation

@odoublewen
Copy link
Copy Markdown
Contributor

Question: the CRAN page above says that promises is a dependency. But it was not previously in this package.py, and r-promises doesn't exist in spack. How is it possible that this worked before then?

FYI @hartzell

@hartzell
Copy link
Copy Markdown
Contributor

hartzell commented Jan 7, 2019

Looks like promises is a new requirement for 0.5, here's the relevant bit of the DESCRIPTION file from the 0.4 release.

Imports: htmltools (>= 0.3.6), htmlwidgets (>= 1.0), magrittr,
        crosstalk

@odoublewen
Copy link
Copy Markdown
Contributor Author

Ah. I'm going to remove 0.5 for now, since r-promises does not yet exist and I've got a lot on my plate.


depends_on('r-htmltools', type=('build', 'run'))
depends_on('r-htmlwidgets', type=('build', 'run'))
depends_on('r-htmltools@0.3.6:', type=('build', 'run'))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do these tighter restrictions apply to all versions of dt, or just recent releases?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm usually lazy and allow these kinds of tighter restrictions unless someone really does need an older version of the dependency. This is a common problem for Python and R packages, and I don't like to make people search backwards through every version to see when the dependency version was upgraded. But you are correct, it is more technically correct to list which version of r-dt require which versions of r-htmltools. If someone needs r-dt to build with an older version of r-htmltools, they are free to hack this package and submit a PR. In the meantime, I'm going to merge.

@adamjstewart adamjstewart merged commit 0e50ff7 into spack:develop Jan 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants