I downloaded the latest version of R functions form the Arlequin website and updated the files in my Arlequin program folder; files are for R version 3.01, although I'm using R 3.1.0. I also downloaded R 3.0.1 and specified that version's Rcmd file in the configuration, but I can't get the graphs to work at all (not in R 3.1.0 either).
Anyone else having this problem and hopefully a solution?
Outdated R functions! I am glad things are working for most of you. Silke (one of the users posted before) is unfortunately still having problems. Moses can you help her? Perhaps your version works for her?
R-functions are at the web site of Arlequin (http://cmpg.unibe.ch/software/arlequin35/Arl35Downloads.html) at R functions topics following the different systems.
I am still confused about how R is called from Arlequin. I gather that in the Arlequin configuration tab you have to specify the path to the Rcmd.exe executable? After running an analysis, when I click the Rcmd button it doesn't do anything except a black box appears for a second. I also get parsing errors with the XML output. Am i doing this in the right order? many thanks in advance,
What I did is the following: I installed the package provided two answers before by Gael Lecellier, then I unzipped them in the arlequin directory and substituted the old ones. Then I ran this Rcmd button to have this black window for some seconds. Finally you open the results from the Arlequin GUI and you will find the figures there.
I am still not seeing any figures, I did replace the new files in the Arlequin directory but, as Carina said, I get the 1second black box and that's it. If you have that black box thingy as well, then where do you find the figures?
You find them when you open the results directly from Arlequin user interface "view results" after running the Rcmd and getting this black window from some seconds. Please be Sure that you had correctly located the Rcmd.exe file for Arlequin.
I have done all those steps and when I click "view results" after clicking the Rcmd the results browser just gives me ax XML parsing error message again! I have linked to the Rcmd.exe file in the R folder. Not sure again what I am doing wrong :(
Did you try to change your default browser?. Especially if you are using MOZILLA, you need some more configurations. I will recommend using google chrome or internet explorer for this time.
thanks again for your reply. I am using Firefox but they recommend using it in the Arlequin manual...unless I should change some settings? I just tried Chrome and it gave an error message and IE just couldn't cope and crashed!
Hi , I followed all instructions of manual but I have the same problem : the graphics don´t embedded in the XML output . Can anybody help me with this? . Please ,send me the folder of R-functions that you mentioned , my email is [email protected]
Would you mind sending me the R functions you used to parse XML files from Arlequin as well? I'm having similar problems. My email: [email protected]. Thanks!
I am having the same issue with R graphics not embedding in XML files. I am running R 3.1.2 and the latest Arlequin ver 3.5.1.2. I have downloaded the r graphics package from the Arlequin website, however it is only for R version 3.0.1. Any solutions? Thanks
Hi Bridie, are you running Arlequin on a MacOS or Windows? I could not run the R-functions on a Mac, then I emulated a Windows session and could get the graphs done.
Anwesha Saha, the Rcmd.exe should be in R/R3.2.0/bin/*/Rcmd.exe
* stands for either i386 or x64, depending if your OS is 32-bit or 64-bit.
About viewing the results on the browser:
I am having the same issue with Internet Explorer. I tried seeing the results on Google Chrome but had no success. When I switched to Firefox I was able to properly see the results with the embedded graphics. The PDF manual tells you how to solve the styling issue on Firefox, I am now looking for solutions in the other browsers. If you have Firefox, type about:config in the address bar, then search for security.fileuri.strict_origin_policy and change the value to FALSE
I followed the instruction of Ana Carolina Arcanjo. Use firefox, and the latest R package, with latest arlequin, and everthing is ok. By the way if you finish project, you must press the stop button. I use windows 7 64bit.
For those of you still dealing with this problem, here is what did to finally see the graphics on the XML file after running an analysis on Arlequin.
First of all, I will give you the setup of my system/computer.
I use a Mac Pro Mid 2012 with OS 10.10.3 (Yosemite). However, I am running Arlequin version 3.5.2.1 (just downloaded it) through Parallel desktop 9 for Mac. I have Windows XP running on my Parallel. The internet explorer 8 is my default browser.
I did added the version of Arlequin because with the previous one (3.5.1.3) it didn't work at all. Now, make sure you really have the latest version, you should get this info from: menu help-> about Arlequin, once you have the software opened. I had something that said 3.5.2.1 in the software name/top bar, but instead it was a previous version according to the help menu (perhaps I didn't dowloaded the right version since the beginning).
So, how can you make sure you have the latest version on your computer? on version 3.5.2.1 you should see available the option: Use 64bit external arlecore.... exactly like the first screenshot from Arlequin's website: http://cmpg.unibe.ch/software/arlequin35/img/Configuration.PNG
In the previous version, this option was not available.
I also downgraded my R version to 3.0.1 (http://cran.r-project.org/bin/windows/base/old/3.1.0/) because the R-Functions folder for Arlequin were written on that version of R (you might try with your current version before install/uninstall R, because perhaps this might not be the real issue).
Even though this R version is older, it does give you the application for 32 and 64 bits. My mac is 64 bit, however, I was not able to get the graphics (they are not written to the graphics folder) using the Rcmd for 64bit. So, I gave the path to 32 bits instead (on your computer, it should more or less look like: C:\Program Files\R\R-3.0.1\bin\i386)
The option Use 64 bit external arlecore... should be also unchecked.
How can I make sure R is properly working through Arlequin. If you have the XML output checked, you can request the graphics via Rcmd. You will see the DOS window for a few seconds just like everyone has mentioned/described. If your internet explorer browser open the XML file without a problem, you should see the graphics already with all the extra information from the analyses you requested Arlequin to do it.
However, if you still have a problem reading the file, you can check the graphics folder that is created by Arlequin. If R is working properly, you should expect some PNG files in that folder. Otherwise, you are still having problems with the communication between R and Arlequin. If you see those files, but cannot open the XML, then perhaps is a problem with your browser (it was not on my case).
I also tried to open the XML via firefox (version 36.0.4) and it worked just fine (I did changed the config of firefox following the Arlequin's manual thought). Not sure, if it would work without changing that.
In my opinion, the error message I was getting when the analysis was finished (when the XML is supposed to be opened) was due to the fact I had the wrong Arlequin version, as simple as that!
I have Arlequin, 3.5.2.1, R version 3.0.1, Windows 7 64-bit and am directing the Rcmd to the x64 bin folder for R-3.0.1. When I click the XML box an error opens in my browser (Firefox) "XML Parsing Error: not well-formed" when I run Arlequin. Even if I try clicking the Rcmd button on Arlequin after an analysis has run, the black box appears for a second but then disappears. I can't see any graphics file in the folder I am working from. Frustrating!!
It seems Arlequin can't keep up with new versions of R. You might want to scan the thread and see which R version works with which Arlequin version. I can send you my R library but it appears that my version doesn't work in newer Arlequin versions as well. Yes frustrating but this is a free software...
Uzay, I was following the threads extensively and used exactly the software versions recommended by Tiago and Guillermo i.e. R v3.0.1, Arlequin v3.5.2.1 and linking to Rcmd in the 32 or 64 bit bins depending on the OS...as you can see in my own message...I understand it is free software :)
this thing with rmcd in arlequin just took whole my day, as Carina I also can not just get those png files from R. any suggestions? my pc 64bit, did all the required things though!
I installed R, set a path to rmcd from arlequin, then also did a path for text editor. The R functions folder inside arlequin software is there. I run the software, then called rmcd function, just only a black screen then nothing, I do not get the point. Can you please step by step explain it?
it is about 2 days since I lost myself in the Arlequin XML files in order to get some fancy R graphics, since these visualizations help more to interpret than just staring at the data.
Here is the deal;
1. download the Arlequin 3.5 (it does not matter which version), if you want to involve R with XML outputs in your data analysis, just download beyond Arlequin 3.11 where you can call Rmcd function which is near to the Start button. Since Arlequin 3.11 and older version do not have Rmcd button to fly with fancy outputs :)
2. install the R, it does not matter which version (there are some speculations that Arlequin best adapts with older R versions, they say that reason maybe the software was written in older scripts, but it is not like that!)
3. in arlequin confugartion, select the XML output (you can and welcome to use other options, so don't stick to my order), and also set text editor exe file
4. run the analysis, then call the Rmcd, in the meantime if your browser like mozilla automatically opens the results. If mozilla does not automatically open, then read the Arlequin manual how to manage. Watch out for PC operating system 32 or 64 bit
5. As Tiago said before, if your Arlequin adapts to R, it will automaically open a folder named 'Graphics' nearby to your Arlequin XML and other results. At least you can enjoy the R graphics you get as jpeg or png extension
Remark!!!
One thing to do is - in the attached Rfunctions file, there stands 3 folders (Rfunctions, rParsingSettings and rParsingSettiings.r.Rout). Just copy and paste 'rParsingSettings and rParsingSettiings.r.Rout' inside Rfunctions folder. And that is!!!
rParsingSettings and rParsingSettiings.r.Rout' should be together standing with Rfunctions in order to get some nice graphics. Because there some certain scripts which displays like Matrix of pairwise Fst.
Finally, do not stick to Mozilla firefox as a browser!!! I tried with old daddy Internet Explorer. It works, you can go with Chrome or Opera. There are no rules.
Thanks for this thread! I have everything running but I encountered a problem: I am looking for mismatch distribution for both spatial and demographic expansion models. Because just a few of my populations can't converge for the demographic expansion model, Arlequin can't finish the analysis and therefore I can't run R to give me the nice graphs... Do you know if it's possible to configure Arlequin to stop the analysis whenever it does not converge or to obtain graphs from the unfinished file?
The generation of the graphics and embedding them in the XML does not seem to work with more recent versions of R (e.g., v3.4.0). I reinstalled v.3.0.1 of R and then things seemed to work fine.
Hello Uzay, I'm having the same problem here (Arlequin 3.5). The graphs doesn't appear in the output folder. Could you send me the updated R functions??? hoping that would solve the problem... ([email protected])
Hello ! I am using Arlequin 3.5 and have the same problems as above people. If anyone using this Arlequin version received Rcmd functions that work can you share them please ? greatly appreciated . eugenia
Update: I tried fixing the issue with the "rParsingSettings" and "rParsingSettings.r.Rout" fix mentioned above and it did not resolve my issue. However, I have fixed the issue by installing the older version of R as recommended above by Tiago José Pereira. It did install with a 64 bit Rcmd version, therefore I did not have to uncheck the "Use 64 bit external arlecore program for computations"
I am running Windows 7 Home Premium SP1 64 bit. I lost 2 days on this as well. I hope this helps the next person.
Hi, I was able to get the graphics (only png format), but when I try with a different project it doesn´t work despite having the same configuration. The analysis performed well but the graphics folder is empty.
Hello! I am using Arlequin 3.5 and the graphics folder is empty (R v3.0.1 and x32). I followed the advices from Tiago and I still can't generate the graphs. Any ideas how this continue to happen?
Hello Uzay, I'm having the same problem here (Arlequin 3.5.2.2). The graphs doesn't appear in the output folder. Could you send me the updated R functions??? hoping that would solve the problem... ([email protected])
I have the same problem. Arlequin does not produce any graph. Everything has been configured well according to the quide and sill nothing. I have been changing versions of R-software (old and new). Arlequin creates only the folder for graphs but wothout anything inside. I did not work on Arlequin software for few years but when i was working i did not have such problem. Now new computer and big problem. Can anyone help? Please.
A super old thread but hoping someone has a foolproof answer by now... My graphics folder is still empty and I've replaced the Rfunctions folder but no luck
Latest version of Arlequin with R 2.11/2.12/2.13 versions will solve the XML visualization issue. I spent a hell lot of time on it! Sharing it here for everyone's convenience. Thank you.