[R-pkg-devel] WG: Linking to a large external library

Matthias Gondan m@tth|@@-gond@n @end|ng |rom gmx@de
Fri Jun 10 14:37:38 CEST 2022


Ah, yes, very annoying (because R 4.2 is only needed for the Windows version of the package). Assuming that you have swi-prolog installed, you might wish to try this (< 5 minutes)

(Linux bash)$ R

R> install.packages("remotes")
R> install_github("mgondan/rologlite")

And then please tell me if it is working.


Von: Ben Engbers
Gesendet: Freitag, 10. Juni 2022 14:05
An: Matthias Gondan
Betreff: Re: [R-pkg-devel] Linking to a large external library

Hi,

The official Fedora 36 repository still offers R 4.1.3. Since "rolog" 
requires at least R (≥ 4.2), this package cannot be installed yet.
I have no experience with removing the 'default' version and then 
manually replacing it with R version 4.2. For now I'm waiting for R 4.2 
to be released in Fedora 36 ;-(

Ben

Op 10-06-2022 om 13:15 schreef Matthias Gondan:
> Dear Ben,
> 
> Not restricted to Windows. rolog is on CRAN, you can install it 
> normally, there's also a nice Vignette with use cases.
> 
> rologlite is under development, but the API will be similar.
> 
> Best wishes
> 
> Matthias
> 
> Am 10.06.2022 12:30 schrieb Ben Engbers <ben.engbers using gmail.com>:
> 
>     "rologlite" verwijst naar een .dll file. Ik neem dus aan dat deze
>     package bedoeld is voor Windows.
>     Mijn vraag is of "rologlite" ook gebruikt kan worden op Linux? Zo ja,
>     dan ben ik zeer benieuwd en ga ik kijken hoe ik dat voor mijn
>     ontwikkelwerkzaamheden kan gebruiken?
> 
>     Ben Engbers
> 
>     Op 08-06-2022 om 22:24 schreef matthias-gondan:
>      > Whenever I add a little feature I have to update the entire
>     package, and so have its users (currently: 0, but that might change).
>     Maybe I'll be the first ;-)
> 
>      > Therefore, I have now written a second package ("rologlite") that
>     just links to the Swi-Prolog dll, which is much smaller in size than
>     embedding it). It searches for Swi-Prolog in the path, in the
>     registry, in the environment, and if all this fails, it checks if
>     rolog is installed and looks for the swipl dll in the rolog package.
>      >
>      > ______________________________________________
>      > R-package-devel using r-project.org mailing list
>      > https://stat.ethz.ch/mailman/listinfo/r-package-devel
> 
> 



	[[alternative HTML version deleted]]



More information about the R-package-devel mailing list