123
March 12, 2024, 12:58pm
1
I installed R4.3.3 and Rstudio2023.12.1, if I use markdown, I can knit my rmd file to pdf, but when I use qmd file, I can not Render successfully. And the bug is
Unable to locate an installed version of R.
Install R from https://cloud.r-project.org/
cderv
March 21, 2024, 1:17pm
2
Do you have this issue inside RStudio IDE ? or using an external install of Quarto and command line ?
See also
opened 09:04PM - 30 Nov 23 UTC
closed 11:59PM - 06 Mar 24 UTC
bug
quarto
Note that the Quarto developers suggested to move this issue from [there](https:… //github.com/quarto-dev/quarto-cli/issues/7473) to here.
A colleague with a non-ASCII character in his `USERPROFILE` has R installed in `c:\users\Ørjan\appdata\Local\Programs\R` (due to lack of administrative privileges).
Rendering of the simplest R-chunk errs with
```bash
ERROR: Error executing 'C:\Users\�rjan\AppData\Local\Programs\R\R-4.3.2\bin\x64\Rscript.exe': Systemet finner ikke angitt bane. (os error 3)
Unable to locate an installed version of R.
Install R from https://cloud.r-project.org/
```
R works perfectly fine elsewhere, and Quarto renders if not containing any R chunks or if `quarto render` or `quarto serve` is used on the command line. We tried to install R in regular Program Files path but some strange admin rights are missing so not an option for now. Other colleagues (and I) have no problems, and we also have no non-ascii characters in our R paths.
NOTE: Although I suspect Quarto has the bug, I am open for the idea that there is something strange in the RStudio locale setup for Norwegian, as all my Norwegian colleagues have needed to set LC_ALL="nb.utf8" for non-ascii characters to work - despite R 4.2 supposedly having made everything utf8 default (https://github.com/rstudio/rstudio/issues/12668).
### System details
RStudio Edition : Desktop
RStudio Version : 2023.12.0 Build 340
OS Version : Windows 11
R Version : 4.3.2
```bash
[System.Text.Encoding]::Default.EncodingName
Vesteuropeisk (Windows)
Get-WinSystemLocale | Select-Object Name, DisplayName,
@{ n='OEMCP'; e={ $_.TextInfo.OemCodePage } },
@{ n='ACP'; e={ $_.TextInfo.AnsiCodePage } }
Name DisplayName OEMCP ACP
---- ----------- ----- ---
nb-NO Norsk (bokmål) (Norge) 850 1252
```
```r
Sys.getenv("LC_ALL") # Note that this must be set to nb.utf8, otherwise we are unable to even run the string "øæå" to the console.
"nb.utf8"
```
```bash
Quarto 1.4.468
[>] Checking versions of quarto binary dependencies...
Pandoc version 3.1.8: OK
Dart Sass version 1.55.0: OK
Deno version 1.33.4: OK
[>] Checking versions of quarto dependencies......OK
[>] Checking Quarto installation......OK
Version: 1.4.468
Path: C:\Program Files\Quarto\bin
CodePage: 1252
[>] Checking tools....................OK
TinyTeX: (not installed)
Chromium: (not installed)
[>] Checking LaTeX....................OK
Tex: (not detected)
[>] Checking basic markdown render....OK
[>] Checking Python 3 installation....(None)
Unable to locate an installed version of Python 3.
Install Python 3 from https://www.python.org/downloads/
[>] Checking R installation...........OK
Version: 4.3.2
Path: C:/PROGRA~1/R/R-43~1.2
LibPaths:
- C:/Users/ØrjanArnevigSamuelse/AppData/Local/R/win-library/4.3
- C:/Program Files/R/R-4.3.2/library
knitr: 1.45
rmarkdown: 2.25
[>] Checking Knitr engine render......OK
```
### Steps to reproduce the problem
````qmd
---
format: html
---
# Regular text works
```{r}
1+1 # R chunk fails
```
````
### Describe the problem in detail
### Describe the behavior you expected
- [X] I have read the guide for [submitting good bug reports](https://github.com/rstudio/rstudio/wiki/Writing-Good-Bug-Reports).
- [X] I have installed the latest version of RStudio, and confirmed that the issue still persists.
- [ ] If I am reporting an RStudio crash, I have included a [diagnostics report](https://support.posit.co/hc/en-us/articles/200321257-Running-a-Diagnostics-Report).
- [X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
and
opened 01:58AM - 01 Feb 24 UTC
bug
windows
### Bug description
I'm trying to help a student who seems to have the same pro… blem on Windows reported in issue #4103 .
(Let me know if I should reopen that issue instead.)
We've run the commands suggested there at the end the thread by @cderv and here are the results. Any suggestions that I can I try with the student?
```
PS C:\Users\王茜舒> Get-ItemPropertyValue -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Nls\CodePage" -Name ACP
936
PS C:\Users\王茜舒> Get-ItemPropertyValue -Path "HKCU:\SYSTEM\CurrentControlSet\Control\Nls\CodePage" -Name ACP
Get-ItemPropertyValue : 找不到路径“HKCU:\SYSTEM\CurrentControlSet\Control\Nls\CodePage”,因为该路径不存在。
所在位置 行:1 字符: 1
+ Get-ItemPropertyValue -Path "HKCU:\SYSTEM\CurrentControlSet\Control\N ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (HKCU:\SYSTEM\Cu...ol\Nls\CodePage:String) [Get-ItemPropertyValue], Item
NotFoundException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetItemPropertyValueCommand
PS C:\Users\王茜舒> Get-ChildItem -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Nls\CodePage"
Hive: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Nls\CodePage
Name Property
---- --------
EUDCCodeRange 932 : F040-F9FC
936 : AAA1-AFFE,F8A1-FEFE,A140-A7A0
949 : C9A1-C9FE,FEA1-FEFE
950 : FA40-FEFE,8E40-A0FE,8140-8DFE,C6A1-C8FE
PS C:\Users\王茜舒> Get-ChildItem -Path "HKCU:\SYSTEM\CurrentControlSet\Control\Nls\CodePage"
Get-ChildItem : 找不到路径“HKEY_CURRENT_USER\SYSTEM\CurrentControlSet\Control\Nls\CodePage”,因为该路径不存在。
所在位置 行:1 字符: 1
+ Get-ChildItem -Path "HKCU:\SYSTEM\CurrentControlSet\Control\Nls\CodeP ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (HKEY_CURRENT_US...ol\Nls\CodePage:String) [Get-ChildItem], ItemNotFound
Exception
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetChildItemCommand
PS C:\Users\王茜舒> Get-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Nls\CodePage"
10000 : c_10000.nls
10001 : c_10001.nls
10002 : c_10002.nls
10003 : c_10003.nls
10004 : c_10004.nls
10005 : c_10005.nls
10006 : c_10006.nls
10007 : c_10007.nls
10008 : c_10008.nls
10010 : c_10010.nls
10017 : c_10017.nls
10021 : c_10021.nls
10029 : c_10029.nls
10079 : c_10079.nls
10081 : c_10081.nls
10082 : c_10082.nls
1026 : c_1026.nls
1047 : c_1047.nls
1140 : c_1140.nls
1141 : c_1141.nls
1142 : c_1142.nls
1143 : c_1143.nls
1144 : c_1144.nls
1145 : c_1145.nls
1146 : c_1146.nls
1147 : c_1147.nls
1148 : c_1148.nls
1149 : c_1149.nls
1250 : c_1250.nls
1251 : c_1251.nls
1252 : c_1252.nls
1253 : c_1253.nls
1254 : c_1254.nls
1255 : c_1255.nls
1256 : c_1256.nls
1257 : c_1257.nls
1258 : c_1258.nls
1361 : c_1361.nls
20000 : c_20000.nls
20001 : c_20001.nls
20002 : c_20002.nls
20003 : c_20003.nls
20004 : c_20004.nls
20005 : c_20005.nls
20105 : c_20105.nls
20106 : c_20106.nls
20107 : c_20107.nls
20108 : c_20108.nls
20127 : c_20127.nls
20261 : c_20261.nls
20269 : c_20269.nls
20273 : c_20273.nls
20277 : c_20277.nls
20278 : c_20278.nls
20280 : c_20280.nls
20284 : c_20284.nls
20285 : c_20285.nls
20290 : c_20290.nls
20297 : c_20297.nls
20420 : c_20420.nls
20423 : c_20423.nls
20424 : c_20424.nls
20833 : c_20833.nls
20838 : c_20838.nls
20866 : c_20866.nls
20871 : c_20871.nls
20880 : c_20880.nls
20905 : c_20905.nls
20924 : c_20924.nls
20932 : c_20932.nls
20936 : c_20936.nls
20949 : c_20949.nls
21025 : c_21025.nls
21027 : c_21027.nls
21866 : c_21866.nls
28591 : C_28591.NLS
28592 : C_28592.NLS
28593 : c_28593.nls
28594 : C_28594.NLS
28595 : C_28595.NLS
28596 : C_28596.NLS
28597 : C_28597.NLS
28598 : c_28598.nls
28599 : c_28599.nls
28603 : c_28603.nls
28605 : c_28605.nls
37 : c_037.nls
38598 : c_28598.nls
437 : c_437.nls
500 : c_500.nls
50220 : c_is2022.dll
50221 : c_is2022.dll
50222 : c_is2022.dll
50225 : c_is2022.dll
50227 : c_is2022.dll
50229 : c_is2022.dll
51949 : c_20949.nls
52936 : c_is2022.dll
54936 : c_g18030.dll
55000 : c_gsm7.dll
55001 : c_gsm7.dll
55002 : c_gsm7.dll
55003 : c_gsm7.dll
55004 : c_gsm7.dll
57002 : c_iscii.dll
57003 : c_iscii.dll
57004 : c_iscii.dll
57005 : c_iscii.dll
57006 : c_iscii.dll
57007 : c_iscii.dll
57008 : c_iscii.dll
57009 : c_iscii.dll
57010 : c_iscii.dll
57011 : c_iscii.dll
708 : c_708.nls
720 : c_720.nls
737 : c_737.nls
775 : c_775.nls
850 : c_850.nls
852 : c_852.nls
855 : c_855.nls
857 : c_857.nls
858 : c_858.nls
860 : c_860.nls
861 : c_861.nls
862 : c_862.nls
863 : c_863.nls
864 : c_864.nls
865 : c_865.nls
866 : c_866.nls
869 : c_869.nls
870 : c_870.nls
874 : c_874.nls
875 : c_875.nls
932 : c_932.nls
936 : c_936.nls
949 : c_949.nls
950 : c_950.nls
AllowDeprecatedCP : 1111573537
OEMHAL : vgaoem.fon
ACP : 936
OEMCP : 936
MACCP : 10008
PSPath : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Nls\CodePag
e
PSParentPath : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Nls
PSChildName : CodePage
PSDrive : HKLM
PSProvider : Microsoft.PowerShell.Core\Registry
PS C:\Users\王茜舒> Get-ItemProperty -Path "HKCU:\SYSTEM\CurrentControlSet\Control\Nls\CodePage"
Get-ItemProperty : 找不到路径“HKCU:\SYSTEM\CurrentControlSet\Control\Nls\CodePage”,因为该路径不存在。
所在位置 行:1 字符: 1
+ Get-ItemProperty -Path "HKCU:\SYSTEM\CurrentControlSet\Control\Nls\Co ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (HKCU:\SYSTEM\Cu...ol\Nls\CodePage:String) [Get-ItemProperty], ItemNotFo
undException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetItemPropertyCommand
```
### Steps to reproduce
Rendering any basic Quarto document causes the problem.
### Expected behavior
One should see the rendered doc.
### Actual behavior
```
processing file: 333.qmd
output file: [333.knit.md](http://333.knit.md/)
pandoc
to: html
output-file: 333.html
standalone: true
section-divs: true
html-math-method: mathjax
wrap: none
default-image-extension: png
metadata
document-css: false
link-citations: true
date-format: long
lang: en
title: testfile
editor: visual
Error running filter D:/下载/RStudio/resources/app/bin/quarto/share/filters/main.lua:
[string "..."]:268: cannot open file 'C:\Users\??????\AppData\Local\Temp\quarto-session65e9675c\8949e2c2\39889c71' (Invalid argument)
stack traceback:
[string "..."]:268: in function 'io.lines'
[string "..."]:1501: in field 'processDependencies'
.../RStudio/resources/app/bin/quarto/share/filters/main.lua:5386: in function <.../RStudio/resources/app/bin/quarto/share/filters/main.lua:5383>
[C]: in ?
[C]: in method 'walk'
.../RStudio/resources/app/bin/quarto/share/filters/main.lua:171: in function 'run_emulated_filter'
.../RStudio/resources/app/bin/quarto/share/filters/main.lua:449: in local 'callback'
.../RStudio/resources/app/bin/quarto/share/filters/main.lua:454: in upvalue 'run_emulated_filter_chain'
.../RStudio/resources/app/bin/quarto/share/filters/main.lua:495: in function <.../RStudio/resources/app/bin/quarto/share/filters/main.lua:476>
stack traceback:
.../RStudio/resources/app/bin/quarto/share/filters/main.lua:171: in function 'run_emulated_filter'
.../RStudio/resources/app/bin/quarto/share/filters/main.lua:449: in local 'callback'
.../RStudio/resources/app/bin/quarto/share/filters/main.lua:454: in upvalue 'run_emulated_filter_chain'
.../RStudio/resources/app/bin/quarto/share/filters/main.lua:495: in function <.../RStudio/resources/app/bin/quarto/share/filters/main.lua:476>
```
### Your environment
- OS: Windows 11
- Rstudio: 2023.12.1-403
### Quarto check output
```
D:\Desktop\test>quarto check
A new release of Deno is available: 1.28.2 → 1.40.2 Run `deno upgrade` to install it.
[>] Checking versions of quarto binary dependencies...
Pandoc version 3.1.1: OK
Dart Sass version 1.55.0: OK
[>] Checking versions of quarto dependencies......OK
[>] Checking Quarto installation......OK
Version: 1.3.450
Path: D:\下载\RStudio\resources\app\bin\quarto\bin
CodePage: unknown
(|) Checking basic markdown render....Error running filter D:/下载/RStudio/resources/app/bin/quarto/share/filters/main.lua:
[string "..."]:268: cannot open file 'C:\Users\??????\AppData\Local\Temp\quarto-session3fcbaa4b\381da427\5f379e51' (Invalid argument)
stack traceback:
[string "..."]:268: in function 'io.lines'
[string "..."]:1501: in field 'processDependencies'
.../RStudio/resources/app/bin/quarto/share/filters/main.lua:5386: in function <.../RStudio/resources/app/bin/quarto/share/filters/main.lua:5383>
[C]: in ?
[C]: in method 'walk'
.../RStudio/resources/app/bin/quarto/share/filters/main.lua:171: in function 'run_emulated_filter'
.../RStudio/resources/app/bin/quarto/share/filters/main.lua:449: in local 'callback'
.../RStudio/resources/app/bin/quarto/share/filters/main.lua:454: in upvalue 'run_emulated_filter_chain'
.../RStudio/resources/app/bin/quarto/share/filters/main.lua:495: in function <.../RStudio/resources/app/bin/quarto/share/filters/main.lua:476>
stack traceback:
.../RStudio/resources/app/bin/quarto/share/filters/main.lua:171: in function 'run_emulated_filter'
.../RStudio/resources/app/bin/quarto/share/filters/main.lua:449: in local 'callback'
.../RStudio/resources/app/bin/quarto/share/filters/main.lua:454: in upvalue 'run_emulated_filter_chain'
.../RStudio/resources/app/bin/quarto/share/filters/main.lua:495: in function <.../RStudio/resources/app/bin/quarto/share/filters/main.lua:476>
[>] Checking basic markdown render....OK
```
Are you in a case of a specific codepage or specific character in your username or quarto installation path ?
system
Closed
April 11, 2024, 1:18pm
3
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed. If you have a query related to it or one of the replies, start a new topic and refer back with a link.