tis-r icon

R

Silent install package for R

4.5.1-2

  • package: tis-r
  • name: R
  • version: 4.5.1-2
  • maintainer: Jordan ARNAUD
  • editor: R editor
  • licence: GNU General Public License
  • target_os: windows
  • architecture: x64
  • signature_date:
  • size: 89.59 Mo
  • homepage : https://www.r-project.org/

package           : tis-r
version           : 4.5.1-2
architecture      : x64
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         : windows
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      : 308d207f-ecf7-42df-9d9d-861f075690bf
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-06-21T08:00:54.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         : h44ASzHLRlhiK5V7ZrXWrU8z00IysnOOfwKlRN2R4c/H8BqMXzpvkLjhlpJmvLydY6ud7Hlo7oApkoqWXm/e+bpWrCO5w1hxvcUGw72nGSzW+KPTY4PNT84VGlC+LBtRj76UBy5JQfuBK6r74u9m+S0hVXK257QPuXm3gwrsnMKZapm39n+0lc+pdsHZo5/cAyQoGx+bAF829w7DkC+GyF0wTxC91OKtSLieUiptqGz4l+e64ItNsUAb/ySu8VwbTn/M9NP1LYFncpnWrJaN3nJl9lo4mnwM3NiPvqwV+PnBt8f3j6fZrIQ0eJDk+0DocC+2hOkwJyRFvAkUUk7YeQ==

# -*- 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://pbil.univ-lyon1.fr/CRAN/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://pbil.univ-lyon1.fr/CRAN/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

8555c189390349924f23104c8af9c5a932281434cd6719c4ccce3d74574627c3 : R-4.5.1-win.exe
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
b5f44b45cadfbf4becedbcd353209bf770b48b4324aa736e5029c4a696dc46a9 : WAPT/control
0f047e5ce928decd28652089ea13e88ecb0d2176c24c070ed401b0e072f4bfb4 : WAPT/icon.png
f22fc664ba363038f8ad062378a1a014ee1e28fa00209b03fb6f7eb225f5a27e : luti.json
66bd7afd989ad6b125a9d1d2d216ab429f06d028202f7d7161944895e69a051b : setup.py
90a64850022a4aef86098bf9fc4d729c6c32a08d22d9e29616e8c35c6672b085 : update_package.py