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

R command problem in positron when publishing from Windows #2598

Open
cderv opened this issue Mar 11, 2025 · 0 comments
Open

R command problem in positron when publishing from Windows #2598

cderv opened this issue Mar 11, 2025 · 0 comments

Comments

@cderv
Copy link

cderv commented Mar 11, 2025

I tried the publisher in Positron (2025-03.0+116) and it fails at renv scanning

Could not scan R packages from lockfile: renv.lock, exit status 1. See [Troubleshooting docs](https://github.com/posit-dev/publisher/blob/main/docs/troubleshooting.md) for help.

Looking at the log I see this

time=2025-03-11T18:10:44.855+01:00 level=DEBUG msg="Collecting manifest R packages" local_id=2wZVlqVUa0bAxIjh event_op=publish/getRPackageDescriptions lockfile=c:\Users\chris\Documents\DEV_OTHER\00-TESTS\test-quarto\renv.lock
time=2025-03-11T18:10:44.856+01:00 level=DEBUG msg="Running command" local_id=2wZVlqVUa0bAxIjh event_op=publish/getRPackageDescriptions cmd="C:\\Program Files\\R\\bin\\R.bat" args="-s -e cat(.libPaths(), sep=\"\\n\")"
time=2025-03-11T18:10:44.900+01:00 level=ERROR msg="Error running command" local_id=2wZVlqVUa0bAxIjh event_op=publish/getRPackageDescriptions command="C:\\Program Files\\R\\bin\\R.bat" error="exit status 1"
'C:\Program' n’est pas reconnu en tant que commande interne
ou externe, un programme exécutable ou un fichier de commandes.

The interesting part is

command="C:\\Program Files\\R\\bin\\R.bat" error="exit status 1"
'C:\Program' n’est pas reconnu en tant que commande interne
ou externe, un programme exécutable ou un fichier de commandes.

which is French because I work on French Windows.

It means

command="C:\\Program Files\\R\\bin\\R.bat" error="exit status 1"
'C:\Program' is not recognized as an internal
or external command, an executable program or a batch file.

and this is usually a quoting problem when running the command on Windows.

I figured I should report here. If you prefer direct slack message in our Posit slack, tell me the channel to use. Thanks !

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

No branches or pull requests

1 participant