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

fix failing tests on Linux #882

Merged
merged 10 commits into from
Apr 21, 2022
Merged

fix failing tests on Linux #882

merged 10 commits into from
Apr 21, 2022

Conversation

IndrajeetPatil
Copy link
Member

@IndrajeetPatil IndrajeetPatil commented Apr 21, 2022

@IndrajeetPatil IndrajeetPatil marked this pull request as draft April 21, 2022 11:54
@IndrajeetPatil
Copy link
Member Author

@Yuri05 For 3.6.3, I see:

Error: package or namespace load failed for 'rClr':
 .onLoad failed in loadNamespace() for 'rClr', details:
  call: inDL(x, as.logical(local), as.logical(now), ...)
  error: unable to load shared object 'c:/RLibrary/3.6/rClr/libs/x64/rClrMs.dll':
  LoadLibrary failure:  The specified procedure could not be found.
Error: package 'rClr' could not be loaded
In addition: Warning message:
package 'rClr' was built under R version 4.0.4 
Execution halted

How can we simultaneously test for two different R versions and not run into rClr issues?

@msevestre
Copy link
Member

You need to install rclr per matrix and not once. Is it possible? (we have two versions of rclr specifically to support >=4 and <4 of R)

@msevestre
Copy link
Member

ALternatively, we do not do this with matrix .
Instead we create a nightly that runs only with the 3.6 version of everything. I think it's probably even better so that the actual ospsuite-r build time does not go through the roof

@IndrajeetPatil
Copy link
Member Author

Instead we create a nightly that runs only with the 3.6 version of everything

I like it!

@IndrajeetPatil IndrajeetPatil changed the title test more r versions on appveyor fix failing tests on Linux Apr 21, 2022
@@ -20,12 +20,10 @@ environment:
NOT_CRAN: true
KEEP_VIGNETTES: true
R_ARCH: x64
R_VERSION: "4.0.5"
R_VERSION: 4.1.0
Copy link
Member Author

Choose a reason for hiding this comment

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

It's important to test on 4.1.0 now because visual regression tests are running only on R > 4.1.

@IndrajeetPatil
Copy link
Member Author

@msevestre You have the last laugh with snapshot test 😭

I don't see the difference between these.

expected

plotgrid-works-as-expected

actual (on AppVeyor)

plotgrid-works-as-expected new

SVG shows difference here: stroke-linejoin: miter; is present in one, but not the other. No clue why.

  < <line x1='577.99' y1='320.91' x2='690.32' y2='320.91' style='stroke-width: 2.1
  : 3; stroke: #333333; stroke-linecap: butt; stroke-linejoin: miter;' />         
  > <line x1='577.99' y1='320.91' x2='690.32' y2='320.91' style='stroke-width: 2.1
  : 3; stroke: #333333; stroke-linecap: butt;' /> 

@@ -28,11 +28,12 @@ Imports:
stringr,
tidyr,
tlf
Suggests:
Suggests:
ggplot2,
Copy link
Member

Choose a reason for hiding this comment

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

@IndrajeetPatil @PavelBal @msevestre
Do we want to have tlf and patchwork as mandatory prerequisites (like now) or is it sufficient to have them as optional prereqs?
I would vote for optional, because - except for plots - ospsuite is still fully functional without those packages installed.

Copy link
Member Author

@IndrajeetPatil IndrajeetPatil Apr 21, 2022

Choose a reason for hiding this comment

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

Honestly speaking, I think this function (plotGrid()) should live in tlf. It sticks out like a sore thumb in ospsuite at the moment. We can re-export it from ospsuite for convenience, but it doesn't feel like its natural home.

In any case, I can move tlf and patchwork to Suggests.

Copy link
Member Author

Choose a reason for hiding this comment

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

But I think this should be part of a separate PR. This is not in the scope of the current PR.

Copy link
Member

Choose a reason for hiding this comment

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

I think this function should live in tlf.

Which function?

Copy link
Member Author

Choose a reason for hiding this comment

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

plotGrid()

Copy link
Member Author

Choose a reason for hiding this comment

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

It's a general plotting function with no ties to DataCombined, and so more appropriate for tlf than ospsuite.

Copy link
Member

Choose a reason for hiding this comment

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

ah ok. Yes, I agree. Would expect it in the tlf as well.

Copy link
Member Author

Choose a reason for hiding this comment

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

Cool, I will create a separate issue to track this, both here and in tlf.

@IndrajeetPatil IndrajeetPatil marked this pull request as ready for review April 21, 2022 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Get rid of NOTEs and WARNINGs in R CMD Check Unit tests fail under Linux
3 participants