-
Notifications
You must be signed in to change notification settings - Fork 2
XML install from source Rtools40 #3
Comments
Looks like it should be the devel package that I should be installing. I've found this in the rtools section of the pacman repos linked but this can't be installed due to missing dependencies of libmxl2-devel. Is it the case that the repository linked to pacman is one you maintain specifically for packages that work with r tools on windows? And sorry for my naivety, but how do these compare to say a linux repository with libxml2-devel in? |
Unfortunately the XML package does not pick up on libxml2 automatically. See here for .a workaround: https://github.com/r-windows/checks/issues/5#issue-335598042 |
Thanks @jeroen - thats fixed it! Can I ask is this solution unique to rtools40 or does say 35 come with libxml2? I don't think I've ever had XML being able to restore from source on 34 or 35. Really liking this revamp of RTools btw - I think the ability to easily install system dependencies via pacman could really make our r workflow on windows a lot more viable. Currently a number of our packrat repos struggle to restore due to some rogue missing dependency which is making dependency management quite a battle. |
The same issue would appear on Rtools 3.5 and earlier. I'm guessing you haven't had to build XML from source on R 3.5 and earlier because CRAN provides binaries? |
No I have experienced many times - I've just ended up adding this to external packages. |
link dead above. and it does not work. |
I found it on the wayback link - https://web.archive.org/web/20201004225623/https://github.com/r-windows/checks/issues/5 However... I've since fought the 32-bit build following the instructions there (I might have the 64-bit build kind of working) |
I am trying to install XML from source with install.packages("XML", type = "source") on Windows using your Rtools40 tool chain.
I have initially started with a fresh installation of rtools40 with no additional packages. This provided the below error.
Its my understanding that the installer doesn't come with all of the dependencies required and that pacman allows you to install these at the command line. As such I ran the following to install what I think is the libxml2 package that XML depends on:
Unfortunately I am still getting the same error even though I have confirmed this is installed. Is it the case that now this is installed I should be able to install XML from source or am I missing something?
Thanks for your help,
Adam
The text was updated successfully, but these errors were encountered: