Skip to content

Add a check for a folder with model's name#461

Merged
rok-cesnovar merged 2 commits intomasterfrom
check_folder_clash_with_exe
Mar 5, 2021
Merged

Add a check for a folder with model's name#461
rok-cesnovar merged 2 commits intomasterfrom
check_folder_clash_with_exe

Conversation

@rok-cesnovar
Copy link
Copy Markdown
Member

Summary

Fixes #456

Copyright and Licensing

Please list the copyright holder for the work you are submitting
(this will be you or your assignee, such as a university or company):
Rok Češnovar

By submitting this pull request, the copyright holder is agreeing to
license the submitted work under the following licenses:

Comment thread R/model.R
}
exe <- cmdstan_ext(paste0(strip_ext(exe_base), exe_suffix))
if (dir.exists(exe)) {
stop("There is a subfolder matching the model name in the same folder as the model! Please remove or rename the subfolder and try again.", call. = FALSE)
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@bbbales2 Any thoughts on the error message? Open to suggestions.

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.

Looks good to me. Lemme give this a gooooo.

Copy link
Copy Markdown
Member

@bbbales2 bbbales2 left a comment

Choose a reason for hiding this comment

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

Good!

@rok-cesnovar rok-cesnovar merged commit 0bb40ee into master Mar 5, 2021
@rok-cesnovar rok-cesnovar deleted the check_folder_clash_with_exe branch March 5, 2021 21:41
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.

When there is a folder with the cmdstan model name cmdstanr produces strange errors

2 participants