R
Silent install package for R
								
								4.5.2-1
								
							
							
                                    Preprod packages are packages built on LUTI.
                                    They remain in PREPROD usually for 5 days, after which a new VirusTotal scan is performed.
                                    
                                    If the package passes this last check, it is promoted to PROD and published on the store.
                                
- package: tis-r
 - name: R
 - version: 4.5.2-1
 - maintainer: Jordan ARNAUD
 - editor: R editor
 - licence: GNU General Public License
 - target_os: darwin
 - architecture: arm
 - signature_date:
 - size: 101.14 Mo
 - homepage : https://www.r-project.org/
 
package           : tis-r
version           : 4.5.2-1
architecture      : arm
section           : base
priority          : optional
name              : R
categories        : 
maintainer        : Jordan ARNAUD
description       : software environment for statistical computing and graphics.
depends           : 
conflicts         : 
maturity          : PREPROD
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      : 345cd561-e2ff-427b-94c2-6aad6e5036db
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 0f047e5ce928decd28652089ea13e88ecb0d2176c24c070ed401b0e072f4bfb4
signer            : test
signer_fingerprint: b82fc8ef4a4475c0f69ac168176c2bfc58f572eb716c4eadd65e4785c155dd8e
signature_date    : 2025-11-01T06:01:17.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         : KmIJ/hwIQhTG/z/jrrvtHQMSXi28y1Y2E+SZJHuzOfy/ns2v9/KwTtalE1+yKE5GyJ5Yh56EEziqoLUqFo6WdLmrk3K8efaQ6ZzZIIKWBkWMiOH5CzKQ5Ne4WO8K4HQFZjM1c2Fd8dhBv6lRxSxA/wx+UuZJ1xfe/5sVA09RrqiurOYQez0aaLSc0tX8EB6dYw1MSuTQvQhIrfhi1cjcTyGdtd3TXOSNGf41Jc+ZVQxJXA7Alpqpra2+5/Md1id4rFZ1wzd2fo4gh5eRF8uUN5gH3MRmAjjiDRsM/NMXce4Ce92g1H9Y3Amc64lY1kWvJqEgdACvIiJolVOCIGz/pw==
                        # -*- 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
                            10f542fc6285c2445f3d1ca0083a5500aa3ec3daad9f4adcdb4e25f054a6d98c : R-4.5.2-arm64.pkg
01ca7fe94636e5a08fcb73849d3b5df25d51e2c82f4dd1a08f01798b25899819 : WAPT/certificate.crt
19b0794427ffb10a16701458d212230c023d2a9baac3f744256d5b4d8d354e24 : WAPT/control
0f047e5ce928decd28652089ea13e88ecb0d2176c24c070ed401b0e072f4bfb4 : WAPT/icon.png
05b6ac53468acfd40152a74ecf97d6bf3e7de17e6ab836a5b2955fb96395266e : luti.json
1a25b1b2e9dc502fd098e23223e6b64fd0c5419c8358933652cf4449e662286f : setup.py
5225542157b3f39128d4213cbd378e495cf30f7512b31d6570a001cea5254d8e : update_package.py