R
Silent install package for R
								
								4.5.2-2
								
							
							
                                    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-2
 - maintainer: Jordan ARNAUD
 - editor: R editor
 - licence: GNU General Public License
 - target_os: windows
 - architecture: x64
 - signature_date:
 - size: 89.71 Mo
 - homepage : https://www.r-project.org/
 
package           : tis-r
version           : 4.5.2-2
architecture      : x64
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         : windows
min_wapt_version  : 2.3
sources           : https://cran.r-project.org/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      : 51aafe3b-23ce-475b-bdd6-9ed4c8147f9a
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-01T05:55:42.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         : F2Y4UaOppW4WKUp84XgGToT3X/HIdD1QLnBgFT/bD6dd+Gk38XZ6GUZXWPt02LyP9VQXT8SB00u+xAz7nR6FKhc33TH/oXJd2/VBq5vdBn0ueWBIhs3SRGYqcQp0QSXTbzNY/EE1wKjQffjr0imE65INBLEM5X0saqhFNLY7IGRP6JDmUNVBiSUghnwk3zstaecqx3N27rXuny1NtZ+i97UmR4BDpxe3OSpNL2B0cNU4PbyDxW8MQNxxyKKUu6SQzPXumqXUW2fJqL14uczTZ5CTenq8/6mSi0KkZmo361JvytFXND0vJQ9XhiYlRQYhTXbEziP7lcKwndsB/rX2NA==
                        # -*- coding: utf-8 -*-
from setuphelpers import *
def install():
    bin_name = glob.glob("R-*win.exe")[0]
    
    install_exe_if_needed(
        bin_name,
        silentflags="/VERYSILENT /SUPPRESSMSGBOXES /NORESTART",
        key=f"R for Windows {control.get_software_version()}_is1",
        min_version=control.get_software_version(),
    )
                            # -*- 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()
    app_name = control.name
    url = "https://cran.r-project.org/bin/windows/base/"
    # Getting latest version from official sources
    print("URL used is: %s" % url)
    for bs_search in bs_find_all(url, "title", proxies=proxies, verify=False):
        version = bs_search.text.replace("Download R-" , "").split(" ")[0]
        latest_bin = f"R-{version}-win.exe"
        download_url = f"https://cran.r-project.org/bin/windows/base/{latest_bin}"
        latest_bin_extension = latest_bin.rsplit('.', 1)[-1]
     # Downloading latest binaries
    print(f"Latest {app_name} version is: {version}")
    print(f"Download URL is: {download_url}")
    if not isfile(latest_bin):
        print(f"Downloading: {latest_bin}")
        wget(download_url, latest_bin, proxies=proxies, verify_cert=False)
    else:
        print(f"Binary is present: {latest_bin}")
    # Changing version of the package
    if Version(version) > Version(control.get_software_version()):
        print(f"Software version updated (from: {control.get_software_version()} to: {Version(version)})")
        package_updated = True
    else:
        print(f"Software version up-to-date ({Version(version)})")
    for f in glob.glob(f'*.{latest_bin_extension}'):
        if f != latest_bin:
            remove_file(f)
    control.set_software_version(version)
    control.save_control_to_wapt()
    return package_updated
                            fcbd6436e1e3f058766354ebab2a21004fe8c21298c7c3eaf3d487e59685acf7 : R-4.5.2-win.exe
01ca7fe94636e5a08fcb73849d3b5df25d51e2c82f4dd1a08f01798b25899819 : WAPT/certificate.crt
bea16357acdbca6407d1e78987faa177888158352ee88602db95f85a42db47c2 : WAPT/control
0f047e5ce928decd28652089ea13e88ecb0d2176c24c070ed401b0e072f4bfb4 : WAPT/icon.png
8518cce4609516afe641c7386cc1b0c9741db5e0459799573d9ada674fa167c5 : luti.json
66bd7afd989ad6b125a9d1d2d216ab429f06d028202f7d7161944895e69a051b : setup.py
17980fbb779e4e67e6acf38672e34c4935b620e85eedb42d4601f65cc52d9238 : update_package.py