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

Correct path generation #20

Merged
merged 1 commit into from
Nov 30, 2020
Merged

Conversation

jranke
Copy link
Contributor

@jranke jranke commented Nov 30, 2020

This reverts the generation of the 'new_path' of the DLL to the version
where normalizePath calls file.path. These paths can then correctly
be matched to the normalized paths of the active DLLs also on Windows,
so that unloading of active DLL works as intended. The argument
'mustWork = FALSE' to 'normalizePath' gets rid of the warnings which we
do not care for as we know that the new path will often not point to an
existing file at this point.

This reverts the generation of the 'new_path' of the DLL to the version
where `normalizePath` calls `file.path`. These paths can then correctly
be matched to the normalized paths of the active DLLs also on Windows,
so that unloading of active DLL works as intended. The argument
'mustWork = FALSE' to 'normalizePath' gets rid of the warnings which we
do not care for as we know that the new path will often not point to an
existing file at this point.
@eddelbuettel
Copy link
Owner

eddelbuettel commented Nov 30, 2020

I'd seen that argument but didn't "click" it would suppress the warning and 'do the right thing'. Nice catch.

rhub r-relrease https://win-builder.r-project.org/5K5xSj5W4JN3
win-builder r-devel https://win-builder.r-project.org/5K5xSj5W4JN3
win-builder r-release https://win-builder.r-project.org/5K5xSj5W4JN3

@eddelbuettel eddelbuettel merged commit ba0ecf4 into eddelbuettel:master Nov 30, 2020
@eddelbuettel
Copy link
Owner

And we're now on CRAN as 0.3.17: https://cran.r-project.org/package=inline

So full steam ahead for your next mkin release!

@jranke
Copy link
Contributor Author

jranke commented Dec 1, 2020

So full steam ahead for your next mkin release!

I need to stabilise my interface to mixed effects models that I am currently working on and get my test coverage back up - currently it is only 61% as I introduced a lot of new code recently. And testing graphics code is still a pain even with vdiffras I sometimes get test failures because of miniscule numeric differences...

Anyways, thanks a bunch for being responsive, it was a pleasure contributing!

@eddelbuettel
Copy link
Owner

Aside: Visual diffs are a pain. We usual something coarser (MongoTheCat/visualTest -- by Gabor but older) to test with our students but it isn't ideal either.

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.

None yet

2 participants