Code Monkey home page Code Monkey logo

asdf-r's People

Contributors

bennyhoward avatar iroddis avatar taiar avatar tomash avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

asdf-r's Issues

Failed to install in macOS

I met this error when install R in macOS 10.15.5

$ asdf install R 3.6.3
configure: error: --with-x=yes (default) and X11 headers/libs are not available

[ubuntu 18] missing dependencies in readme

Hello, just a small issue to mention some missing dependencies in the readme in order to install version 3.6.3:

sudo apt install libbz2-dev liblzma-dev libpcre3 libpcre3-dev

operating system:

> $ cat /etc/os-release                                                                                                                 
NAME="Ubuntu"
VERSION="18.04.5 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.5 LTS"

Not an expert in this field, but thought mentioning would be worth it. Feel free to close this issue if you find this irrelevant (I've already fixed it on my local setup).

List all versions

I was trying to install the "latest" version of R using asdf. I ran asdf install R latest and

22:17 $ R --version
R version 3.6.3 (2020-02-29) -- "Holding the Windsock"
Copyright (C) 2020 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under the terms of the
GNU General Public License versions 2 or 3.
For more information about these matters see
https://www.gnu.org/licenses/.

but the latest version is 4.0.2. I can successfully install that version if I specify it explicitly like asdf install R 4.0.2, but the list-all and install R latest functionality should work as expected. I'm opening a PR momentarily to fix this.

ls with colors leads to error

Package translations rely on ls on makefile https://github.com/wch/r-source/blob/32334706896c2631fdd050c1b807ce4b6e867aea/src/library/translations/Makefile.in#L22 what leads to error when ls command is configured to have colors:

building package 'translations'
cp: \033[34m./inst/da\033[39;49m\033[0m: No such file or directory
cp: \033[34m./inst/de\033[39;49m\033[0m: No such file or directory
cp: \033[34m./inst/en\033[39;49m\033[0m: No such file or directory
cp: \033[34m./inst/en@quot\033[39;49m\033[0m: No such file or directory
cp: \033[34m./inst/en_GB\033[39;49m\033[0m: No such file or directory
cp: \033[34m./inst/es\033[39;49m\033[0m: No such file or directory
cp: \033[34m./inst/fa\033[39;49m\033[0m: No such file or directory
cp: \033[34m./inst/fr\033[39;49m\033[0m: No such file or directory
cp: \033[34m./inst/it\033[39;49m\033[0m: No such file or directory
cp: \033[34m./inst/ja\033[39;49m\033[0m: No such file or directory
cp: \033[34m./inst/ko\033[39;49m\033[0m: No such file or directory
cp: \033[34m./inst/nn\033[39;49m\033[0m: No such file or directory
cp: \033[34m./inst/pl\033[39;49m\033[0m: No such file or directory
cp: \033[34m./inst/pt_BR\033[39;49m\033[0m: No such file or directory
cp: \033[34m./inst/ru\033[39;49m\033[0m: No such file or directory
cp: \033[34m./inst/tr\033[39;49m\033[0m: No such file or directory
cp: \033[34m./inst/zh_CN\033[39;49m\033[0m: No such file or directory
cp: \033[34m./inst/zh_TW\033[39;49m\033[0m: No such file or directory

Any tip on how to get rid of those colors just to install R?

Fix the list-all

Updated the list-all code to separate with spaces and not EOL as seen in https://asdf-vm.com/#/plugins-create

#!/usr/bin/env bash

# Start the list at major version 2
major=2

# collect all the versions in this
versions=()

# Act like a do-while loop and iterate though major versions starting a 2 until no minor releases can be found.
#   And by no minor release found, no lists found on the webpage with no text like '.tar.gz' on it.
while : ; do
    major_list="$(curl --silent https://mirrors.nics.utk.edu/cran/src/base/R-${major}/ | tr '<>' ',,' | awk -F, '/tar.gz/{ print $13 }' | sed -e 's/.tar.gz//g' -e 's/R-//')"
    [[ $major_list == '' ]] && break
    versions+=($major_list)
    major=$(( $major + 1 ))
done

echo ${versions[@]}

This is fixed in PR #15.

PCRE issue

Hi,

R v3.6.1 dies with

$ R_CONFIGURE_OPTIONS=--with-x=no --with-PCRE=no asdf install R 3.6.1
...
checking if lzma version >= 5.0.3... yes
checking for pcre_fullinfo in -lpcre... no
checking whether PCRE support suffices... configure: error: pcre >= 8.20 library and headers are required

Despite pcre and pcre-dev 8.31 package are installed:

$ dpkg -l | grep ii | grep pcre
ii  libpcre3:amd64                              1:8.31-2ubuntu2.3                                                   amd64        Perl 5 Compatible Regular Expression Library - runtime files
ii  libpcre3:i386                               1:8.31-2ubuntu2.3                                                   i386         Perl 5 Compatible Regular Expression Library - runtime files
ii  libpcre3-dev:amd64                          1:8.31-2ubuntu2.3                                                   amd64        Perl 5 Compatible Regular Expression Library - development files
ii  libpcrecpp0:amd64                           1:8.31-2ubuntu2.3                                                   amd64        Perl 5 Compatible Regular Expression Library - C++ runtime files

Cheers.

Installation path of the packages under different R versions

Hi @n8sty, thanks for continuing this work. I was waiting for the update of this plugin.

I haven't used asdf for R yet, so I still have no idea how different R versions handle the installation path of the packages. Could you tell me if it is in the R_CONFIGURE_OPTIONS variable that I inform the installation path of the packages?

My current installed version (4.0.3) uses the R_LIBS_USER variable to indicate a path other than the default for installing packages. How does asdf handle this?

Error during installation

Hi,
I am running on High Sierra
and version of asdf = v0.4.1
when I try to do asdf install R 3.4.3

I get and error like this:

checking for Fortran 77 name-mangling scheme... configure: error: in `/var/folders/74/87lvr3dn181bqfph2vtkc2n40000gn/T/R-3.4.3':
configure: error: cannot compile a simple Fortran program
See `config.log' for more details```

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.