tis-r icon

R

Paquet d’installation silencieuse pour R

4.4.3-1

  • package: tis-r
  • name: R
  • version: 4.4.3-1
  • maintainer: Jordan ARNAUD
  • editor: R editor
  • licence: GNU General Public License
  • target_os: darwin
  • architecture: arm
  • signature_date:
  • size: 101.18 Mo
  • homepage : https://www.r-project.org/

package           : tis-r
version           : 4.4.3-1
architecture      : arm
section           : base
priority          : optional
name              : R
categories        : 
maintainer        : Jordan ARNAUD
description       : software environment for statistical computing and graphics.
depends           : 
conflicts         : 
maturity          : PROD
locale            : 
target_os         : darwin
min_wapt_version  : 2.3
sources           : https://pbil.univ-lyon1.fr/CRAN/bin/windows/base/
installed_size    : 
impacted_process  : 
description_fr    : 
description_pl    : 
description_de    : 
description_es    : 
description_pt    : 
description_it    : 
description_nl    : 
description_ru    : 
audit_schedule    : 
editor            : R editor
keywords          : 
licence           : GNU General Public License
homepage          : https://www.r-project.org/
package_uuid      : 30efa970-6e9e-418b-a77c-bd26ac7fc92d
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 0f047e5ce928decd28652089ea13e88ecb0d2176c24c070ed401b0e072f4bfb4
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2025-03-08T17:12:31.000000
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,changelog,min_os_version,max_os_version,icon_sha256sum,signer,signer_fingerprint,signature_date,signed_attributes
signature         : C0weyVADWSZt7BWKOhL3M9xqJ395f5D2nHGNBI4Q1tZ0ofQgxjLiPZOWeXj/Gvz0rQoJE9tW6Y0ZS+IYjL1hh63jk6mPIXo1iI2j/cmJ2yvA0QEdOjPTxh+9lAnFrg5u9PXIBhHCcjA6Dxzn1nTxu7U5s1TmSkXCOLBvv9/PJEJUw5EIAbO3piD1rkeY4G6eDRJUCYcbwVYyvDCV4yju8gduja2CLJh/8H+Z5vdWX+7PuQp8XtONLf14AINNTspGKPS+hJvOnOwJw3psumCZuSQVi/jkhE02nGhTreNr611TdAQBRorp4z/xioknk+3goYyw3ecn8Mgk7zapJ8zFYg==

# -*- coding: utf-8 -*-
##################################################
# This file is part of WAPT Enterprise
# All right reserved, (c) Tranquil IT Systems 2023
# For more information please refer to
# https://wapt.tranquil.it/store/licences.html
##################################################
from setuphelpers import *


def install():
    bin_name = glob.glob("*.pkg")[0]
    install_pkg(
        bin_name,
        key="pkgid:org.R-project.arm64.R.GUI.pkg",
    )
    uninstallkey.append("pkgid:org.R-project.arm64.R.GUI.pkg")

# -*- coding: utf-8 -*-
from setuphelpers import *
from setupdevhelpers import *


def update_package():
    # Declaring local variables
    package_updated = False
    proxies = get_proxies_from_wapt_console()
    if not proxies:
        proxies = get_proxies()

    update_dict = {
        "os_archi": {
            "x64": "x86_64",
            "arm" : "arm64"
        },
    }

    url = "https://cran.r-project.org/bin/macosx/"
    archi = update_dict["os_archi"][control.architecture]

    # Getting latest version from official sources
    print("URL used is: %s" % url)
    for bs_search in bs_find_all(url, "h2", proxies=proxies):
        version = bs_search.text.split(" ")[1]
        latest_bin = f"R-{version}-{archi}.pkg"
        download_url = f"https://cran.r-project.org/bin/macosx/big-sur-{archi}/base/R-{version}-{archi}.pkg"
        break


    # Deleting outdated binaries
    remove_outdated_binaries(latest_bin)

    # Downloading latest binaries
    print("Latest %s version is: %s" % (control.name, version))
    print("Download URL is: %s" % download_url)
    if not isfile(latest_bin):
        print("Downloading: %s" % latest_bin)
        wget(download_url, latest_bin, proxies=proxies)
    else:
        print("Binary is present: %s" % latest_bin)

    control.set_software_version(version)
    control.save_control_to_wapt()

    # Validating or not update-package-sources
    return package_updated

f768eb245c06b17740c6b6f1e0129b437584e73ce5f15a25d818698ebdc678f0 : R-4.4.3-arm64.pkg
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
8532a8482c53d5d7d47e785207ee46a1a0590db81dc13fc1211dfb202ef88de6 : WAPT/control
0f047e5ce928decd28652089ea13e88ecb0d2176c24c070ed401b0e072f4bfb4 : WAPT/icon.png
5287b95875bbb4221538d1298b337eab8406e4fabd8e360d520dbf03ea3f98e8 : luti.json
1a25b1b2e9dc502fd098e23223e6b64fd0c5419c8358933652cf4449e662286f : setup.py
5225542157b3f39128d4213cbd378e495cf30f7512b31d6570a001cea5254d8e : update_package.py