Message about directory unavailable when fitting models with ulam()

Open
#462 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
Half a day
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
r
Domain
cli

Research direction

The repeated message comes from the Windows CMD call made while ulam() compiles and runs the Stan model, so start with the shell or system call that ulam() makes and check how it handles a UNC working directory. Reproduce by fitting a small model from a project on a UNC network path on Windows and count how often the message prints. Done when the path is handled without the warning or the extra delay.

Written by the indexing model from the issue text.

Description

When I fit a model with ulam(), I receive a message in the console that repeats about 12 times (I have removed the "directory path" which is the path to my RStudio project file). :

'\
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported. Defaulting to Windows directory

I am using RStudio 2026.05.1 build 225 and R version 4.5.0.

I still receive results so this does not appear to affect something (or I'm not aware of what it's affecting). It is strange behavior because it takes 30 seconds or so to print this repeated message after the model has finished running.

Dominant language
R
Stars
2.4k
Forks
632
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from rmcelreath/rethinking

All issues in rmcelreath/rethinking

Similar issues

More R issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.