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

Allow underscores in dust::name and similar #359

Merged
merged 2 commits into from
Jan 14, 2022
Merged

Conversation

richfitz
Copy link
Member

@richfitz richfitz commented Jan 12, 2022

See mrc-ide/odin.dust#98 for the trigger. We just fall back to using dust for the dll name which should work fine. For packages, this is not a problem at all.

Fixes #358
Fixes mrc-ide/odin.dust#98

@codecov
Copy link

codecov bot commented Jan 12, 2022

Codecov Report

Merging #359 (fb98452) into master (24f843d) will not change coverage.
The diff coverage is 100.00%.

❗ Current head fb98452 differs from pull request most recent head 7f7d8fe. Consider uploading reports for the commit 7f7d8fe to get more accurate results
Impacted file tree graph

@@            Coverage Diff            @@
##            master      #359   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           64        64           
  Lines         3487      3488    +1     
=========================================
+ Hits          3487      3488    +1     
Impacted Files Coverage Δ
R/utils.R 100.00% <ø> (ø)
R/compile.R 100.00% <100.00%> (ø)
R/metadata.R 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 24f843d...7f7d8fe. Read the comment docs.

@chvandorp
Copy link

chvandorp commented Jan 12, 2022

Hi Rich, I installed the i358-underscore branch and tried compiling a model with odin.dust::odin_dust. Underscores in filenames now work fine. However, I was able to come up with some other annoying filenames, but perhaps that's for another issue.

odin.dust::odin_dust("odin_dust_test(1).txt") ## causes error in R script
odin.dust::odin_dust("odin_dust.test.txt") ## causes C++ compilation error
odin.dust::odin_dust("odin_dust_test_missing.txt") ## if the file is missing, the warning does not show the filename

Thanks!

@richfitz
Copy link
Member Author

Thanks for these examples @chvandorp; I've fixed these in odin (see mrc-ide/odin#254, allow-parens, version 1.3.3). With that installed, all 3 of your examples behave much better

@weshinsley weshinsley merged commit 8a09592 into master Jan 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants