Hello, This is the error that appears when I try to load library(Rcmdr). I am using R version 4.3.3. I have tried to upload the packages, uninstall them and intalling them again and nothing. Loading required package: splines Loading required package: RcmdrMisc Loading required package: car Loading required package: carData Loading required package: sandwich Loading required package: effects lattice theme set by effectsTheme() See ?effectsTheme for details. Error: package or namespace load failed for ?Rcmdr?: .onLoad failed in loadNamespace() for 'tcltk2', details: call: file.exists("~/.Rtk2theme") error: file name conversion problem -- name too long? Once this appears I use path.expand('~') and this is R's answer: [1] "C:\\Users\\marga\\OneDrive - Fundaci\xf3n Universitaria San Pablo CEU\\Documentos" The thing is that in spanish we use accents, so this word (Fundaci\xf3n) really is Fundaci?n, but I can't change it. I have tried to start R from CDM using: C:\Users\marga>set R_USER=C:\Users\marga\R_USER C:\Users\marga>"C:\Users\marga\Desktop\R-4.3.3\bin\R.exe" CMD Rgui At the beginning this worked but right now a message saying that this app cannot be used and that I have to ask the software company (photo attached) What should I do? Thanks, Mar [https://www.uchceu.es/img/externos/correo/ceu_uch.gif]<https://www.uchceu.es/> Maria Del Mar Garc?a Zamora Alumno UCHCEU - Universidad CEU Cardenal Herrera - Tel. www.uchceu.es<https://www.uchceu.es/> [https://www.uchceu.es/img/logos/wur.jpg] [https://www.uchceu.es/img/externos/correo/medio_ambiente.gif] Por favor, piensa en el medio ambiente antes de imprimir este contenido [http://www.uchceu.es/img/externos/correo/ceu_uch.gif]<http://www.uchceu.es/> Maria Del Mar Garc?a Zamora www.uchceu.es<http://www.uchceu.es/> [http://www.uchceu.es/img/externos/correo/medio_ambiente.gif] Por favor, piensa en el medio ambiente antes de imprimir este contenido Este mensaje y sus archivos adjuntos, enviados desde FUNDACI?N UNIVERSITARIA SAN PABLO-CEU, pueden contener informaci?n confidencial y est? destinado a ser le?do s?lo por la persona a la que va dirigido, por lo que queda prohibida la difusi?n, copia o utilizaci?n de dicha informaci?n por terceros. Si usted lo recibiera por error, por favor, notif?quelo al remitente y destruya el mensaje y cualquier documento adjunto que pudiera contener. Cualquier informaci?n, opini?n, conclusi?n, recomendaci?n, etc. contenida en el presente mensaje no relacionada con la actividad de FUNDACI?N UNIVERSITARIA SAN PABLO-CEU, y/o emitida por persona no autorizada para ello, deber? considerarse como no proporcionada ni aprobada por FUNDACI?N UNIVERSITARIA SAN PABLO-CEU, que pone los medios a su alcance para garantizar la seguridad y ausencia de errores en la correspondencia electr?nica, pero no puede asegurar la inexistencia de virus o la no alteraci?n de los documentos transmitidos electr?nicamente, por lo que declina cualquier responsabilidad a este respecto. This message and its attachments, sent from FUNDACI?N UNIVERSITARIA SAN PABLO-CEU, may contain confidential information and is intended to be read only by the person it is directed. Therefore any disclosure, copying or use by third parties of this information is prohibited. If you receive this in error, please notify the sender and destroy the message and any attachments may contain. Any information, opinion, conclusion, recommendation,... contained in this message and which is unrelated to the business activity of FUNDACI?N UNIVERSITARIA SAN PABLO-CEU and/or issued by unauthorized personnel, shall be considered unapproved by FUNDACI?N UNIVERSITARIA SAN PABLO-CEU. FUNDACI?N UNIVERSITARIA SAN PABLO-CEU implements control measures to ensure, as far as possible, the security and reliability of all its electronic correspondence. However, FUNDACI?N UNIVERSITARIA SAN PABLO-CEU does not guarantee that emails are virus-free or that documents have not be altered, and does not take responsibility in this respect. -------------- next part -------------- A non-text attachment was scrubbed... Name: Captura de pantalla 2024-03-11 192201.png Type: image/png Size: 192628 bytes Desc: Captura de pantalla 2024-03-11 192201.png URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20240312/dd91092d/attachment.png>
?s 07:43 de 12/03/2024, Maria Del Mar Garc?a Zamora escreveu:> Hello, > > This is the error that appears when I try to load library(Rcmdr). I am using R version 4.3.3. I have tried to upload the packages, uninstall them and intalling them again and nothing. > Loading required package: splines > Loading required package: RcmdrMisc > Loading required package: car > Loading required package: carData > Loading required package: sandwich > Loading required package: effects > lattice theme set by effectsTheme() > See ?effectsTheme for details. > Error: package or namespace load failed for ?Rcmdr?: > .onLoad failed in loadNamespace() for 'tcltk2', details: > call: file.exists("~/.Rtk2theme") > error: file name conversion problem -- name too long? > > Once this appears I use path.expand('~') and this is R's answer: > [1] "C:\\Users\\marga\\OneDrive - Fundaci\xf3n Universitaria San Pablo CEU\\Documentos" > > The thing is that in spanish we use accents, so this word (Fundaci\xf3n) really is Fundaci?n, but I can't change it. > > I have tried to start R from CDM using: C:\Users\marga>set R_USER=C:\Users\marga\R_USER > > C:\Users\marga>"C:\Users\marga\Desktop\R-4.3.3\bin\R.exe" CMD Rgui > > At the beginning this worked but right now a message saying that this app cannot be used and that I have to ask the software company (photo attached) > > What should I do? > > Thanks, > > Mar > > > [https://www.uchceu.es/img/externos/correo/ceu_uch.gif]<https://www.uchceu.es/> > > Maria Del Mar Garc?a Zamora > Alumno UCHCEU - > Universidad CEU Cardenal Herrera > - > Tel. > www.uchceu.es<https://www.uchceu.es/> > > [https://www.uchceu.es/img/logos/wur.jpg] > [https://www.uchceu.es/img/externos/correo/medio_ambiente.gif] Por favor, piensa en el medio ambiente antes de imprimir este contenido > > > > [http://www.uchceu.es/img/externos/correo/ceu_uch.gif]<http://www.uchceu.es/> > > Maria Del Mar Garc?a Zamora > > www.uchceu.es<http://www.uchceu.es/> > > [http://www.uchceu.es/img/externos/correo/medio_ambiente.gif] Por favor, piensa en el medio ambiente antes de imprimir este contenido > > > > > Este mensaje y sus archivos adjuntos, enviados desde FUNDACI?N UNIVERSITARIA SAN PABLO-CEU, pueden contener informaci?n confidencial y est? destinado a ser le?do s?lo por la persona a la que va dirigido, por lo que queda prohibida la difusi?n, copia o utilizaci?n de dicha informaci?n por terceros. Si usted lo recibiera por error, por favor, notif?quelo al remitente y destruya el mensaje y cualquier documento adjunto que pudiera contener. Cualquier informaci?n, opini?n, conclusi?n, recomendaci?n, etc. contenida en el presente mensaje no relacionada con la actividad de FUNDACI?N UNIVERSITARIA SAN PABLO-CEU, y/o emitida por persona no autorizada para ello, deber? considerarse como no proporcionada ni aprobada por FUNDACI?N UNIVERSITARIA SAN PABLO-CEU, que pone los medios a su alcance para garantizar la seguridad y ausencia de errores en la correspondencia electr?nica, pero no puede asegurar la inexistencia de virus o la no alteraci?n de los documentos transmitidos electr?nicamente, por lo que declina cualquier responsabilidad a este respecto. > > This message and its attachments, sent from FUNDACI?N UNIVERSITARIA SAN PABLO-CEU, may contain confidential information and is intended to be read only by the person it is directed. Therefore any disclosure, copying or use by third parties of this information is prohibited. If you receive this in error, please notify the sender and destroy the message and any attachments may contain. Any information, opinion, conclusion, recommendation,... contained in this message and which is unrelated to the business activity of FUNDACI?N UNIVERSITARIA SAN PABLO-CEU and/or issued by unauthorized personnel, shall be considered unapproved by FUNDACI?N UNIVERSITARIA SAN PABLO-CEU. FUNDACI?N UNIVERSITARIA SAN PABLO-CEU implements control measures to ensure, as far as possible, the security and reliability of all its electronic correspondence. However, FUNDACI?N UNIVERSITARIA SAN PABLO-CEU does not guarantee that emails are virus-free or that documents have not be altered, and does not take responsibility in this respect. > > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.Hello, First of all, try running Rgui only, no R.exe CMD. Just Rgui.exe or C:\Users\marga\Desktop\R-4.3.3\bin\Rgui.exe Then, in Rgui, try loading Rcmdr library(Rcmdr) Also, do you have R in your Windows PATH variable? The directory to put in PATH should be C:\Users\marga\Desktop\R-4.3.3\bin so that Windows can find R.exe and Rgui.exe without the full path name. Hope this helps, Rui Barradas -- Este e-mail foi analisado pelo software antiv?rus AVG para verificar a presen?a de v?rus. www.avg.com
? Tue, 12 Mar 2024 07:43:08 +0000 Maria Del Mar Garc?a Zamora <mar.garcia1 at alumnos.uchceu.es> ?????:> Error: package or namespace load failed for ?Rcmdr?: > .onLoad failed in loadNamespace() for 'tcltk2', details: > call: file.exists("~/.Rtk2theme") > error: file name conversion problem -- name too long? > > Once this appears I use path.expand('~') and this is R's answer: > [1] "C:\\Users\\marga\\OneDrive - Fundaci\xf3n Universitaria San > Pablo CEU\\Documentos"We've seen this problem before: https://stat.ethz.ch/pipermail/r-help/2023-December/478732.html The workaround that should help is to set the R_USER environment variable to C:\Users\marga before launching R. Please let me know if you're willing to debug R. (This will likely involve compiling R from source with debugging symbols enabled and stepping through the code.) There are no places in the Windows code where R gets the conversion obviously wrong. I don't have OneDrive and I wasn't able to convince R to return an invalid R_USER path without it. I'm halfway convinced this is due to a bug in OneDrive itself. -- Best regards, Ivan
Dear Maria, I'm sorry for somehow completely missing the second half of your message where you say that you've already tried the workaround. ? Tue, 12 Mar 2024 07:43:08 +0000 Maria Del Mar Garc?a Zamora <mar.garcia1 at alumnos.uchceu.es> ?????:> I have tried to start R from CDM using: C:\Users\marga>set > R_USER=C:\Users\marga\R_USER > > C:\Users\marga>"C:\Users\marga\Desktop\R-4.3.3\bin\R.exe" CMD Rgui > > At the beginning this worked but right now a message saying that this > app cannot be used and that I have to ask the software company (photo > attached)Glad to know the workaround helped. It sounds like your Windows 10 is set up in a user-hostile way. It may help to visit the Windows Security settings and make an exception for C:\Users\marga\Desktop\R-4.3.3\bin\R.exe. An approximate instruction can be found at <https://habr.com/en/companies/hetmansoftware/articles/549410/>, but it might be the case that your university IT must take a look at it before allowing you to run R on your computer. Feel free to disregard this advice if someone with more Windows experience shows up. -- Best regards, Ivan
Hi Maria, I had something similar on my Windows work laptop at some point where the home directory was something containing non ASCII characters. The easy solution is to copy said directly from the file explorer into utils::shortPathName, and then set that as the home directory. In my case,> writeLines(utils::shortPathName(r"(C:\Users\iris\OneDrive - OrganizationName Non ASCII\Documents)")) C:\Users\iris\ONEDRI~1\DOCUME~1 and then in the control panel, then user accounts (twice), then Change My Environment Variables, enter the variable name HOME and the directory that was produced by R. Now the HOME directory contains all ASCII characters so everything works as expected. I hope this helps! On Tue, Mar 12, 2024, 04:49 Maria Del Mar Garc?a Zamora < mar.garcia1 at alumnos.uchceu.es> wrote:> Hello, > > This is the error that appears when I try to load library(Rcmdr). I am > using R version 4.3.3. I have tried to upload the packages, uninstall them > and intalling them again and nothing. > Loading required package: splines > Loading required package: RcmdrMisc > Loading required package: car > Loading required package: carData > Loading required package: sandwich > Loading required package: effects > lattice theme set by effectsTheme() > See ?effectsTheme for details. > Error: package or namespace load failed for ?Rcmdr?: > .onLoad failed in loadNamespace() for 'tcltk2', details: > call: file.exists("~/.Rtk2theme") > error: file name conversion problem -- name too long? > > Once this appears I use path.expand('~') and this is R's answer: > [1] "C:\\Users\\marga\\OneDrive - Fundaci\xf3n Universitaria San Pablo > CEU\\Documentos" > > The thing is that in spanish we use accents, so this word (Fundaci\xf3n) > really is Fundaci?n, but I can't change it. > > I have tried to start R from CDM using: C:\Users\marga>set > R_USER=C:\Users\marga\R_USER > > C:\Users\marga>"C:\Users\marga\Desktop\R-4.3.3\bin\R.exe" CMD Rgui > > At the beginning this worked but right now a message saying that this app > cannot be used and that I have to ask the software company (photo attached) > > What should I do? > > Thanks, > > Mar > > > [https://www.uchceu.es/img/externos/correo/ceu_uch.gif]< > https://www.uchceu.es/> > > Maria Del Mar Garc?a Zamora > Alumno UCHCEU - > Universidad CEU Cardenal Herrera > - > Tel. > www.uchceu.es<https://www.uchceu.es/> > > [https://www.uchceu.es/img/logos/wur.jpg] > [https://www.uchceu.es/img/externos/correo/medio_ambiente.gif] Por favor, > piensa en el medio ambiente antes de imprimir este contenido > > > > [http://www.uchceu.es/img/externos/correo/ceu_uch.gif]< > http://www.uchceu.es/> > > Maria Del Mar Garc?a Zamora > > www.uchceu.es<http://www.uchceu.es/> > > [http://www.uchceu.es/img/externos/correo/medio_ambiente.gif] Por favor, > piensa en el medio ambiente antes de imprimir este contenido > > > > > Este mensaje y sus archivos adjuntos, enviados desde FUNDACI?N > UNIVERSITARIA SAN PABLO-CEU, pueden contener informaci?n confidencial y > est? destinado a ser le?do s?lo por la persona a la que va dirigido, por lo > que queda prohibida la difusi?n, copia o utilizaci?n de dicha informaci?n > por terceros. Si usted lo recibiera por error, por favor, notif?quelo al > remitente y destruya el mensaje y cualquier documento adjunto que pudiera > contener. Cualquier informaci?n, opini?n, conclusi?n, recomendaci?n, etc. > contenida en el presente mensaje no relacionada con la actividad de > FUNDACI?N UNIVERSITARIA SAN PABLO-CEU, y/o emitida por persona no > autorizada para ello, deber? considerarse como no proporcionada ni aprobada > por FUNDACI?N UNIVERSITARIA SAN PABLO-CEU, que pone los medios a su alcance > para garantizar la seguridad y ausencia de errores en la correspondencia > electr?nica, pero no puede asegurar la inexistencia de virus o la no > alteraci?n de los documentos transmitidos electr?nicamente, por lo que > declina cualquier responsabilidad a este respecto. > > This message and its attachments, sent from FUNDACI?N UNIVERSITARIA SAN > PABLO-CEU, may contain confidential information and is intended to be read > only by the person it is directed. Therefore any disclosure, copying or use > by third parties of this information is prohibited. If you receive this in > error, please notify the sender and destroy the message and any attachments > may contain. Any information, opinion, conclusion, recommendation,... > contained in this message and which is unrelated to the business activity > of FUNDACI?N UNIVERSITARIA SAN PABLO-CEU and/or issued by unauthorized > personnel, shall be considered unapproved by FUNDACI?N UNIVERSITARIA SAN > PABLO-CEU. FUNDACI?N UNIVERSITARIA SAN PABLO-CEU implements control > measures to ensure, as far as possible, the security and reliability of all > its electronic correspondence. However, FUNDACI?N UNIVERSITARIA SAN > PABLO-CEU does not guarantee that emails are virus-free or that documents > have not be altered, and does not take responsibility in this respect. > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >[[alternative HTML version deleted]]