tis-r-project icon

R Project

Silent install package for R Project

4.4.3-2

  • package: tis-r-project
  • name: R Project
  • version: 4.4.3-2
  • categories: Utilities
  • maintainer: WAPT Team,Tranquil IT,Pierre Cosson,Jimmy PELE
  • locale: all
  • target_os: windows
  • impacted_process: R,Rscript,R,Rcmd,Rfe,Rgui,Rscript,RSetReg,Rterm
  • architecture: all
  • signature_date:
  • size: 87.80 Mo
  • installed_size: 172.45 Mo

package           : tis-r-project
version           : 4.4.3-2
architecture      : all
section           : base
priority          : optional
name              : R Project
categories        : Utilities
maintainer        : WAPT Team,Tranquil IT,Pierre Cosson,Jimmy PELE
description       : R is a free software environment for statistical computing and graphics
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : windows
min_wapt_version  : 2.1
sources           : https://cloud.r-project.org/
installed_size    : 172450090
impacted_process  : R,Rscript,R,Rcmd,Rfe,Rgui,Rscript,RSetReg,Rterm
description_fr    : R est un environnement logiciel libre pour le calcul statistique et les graphiques
description_pl    : R to darmowe środowisko programistyczne do obliczeń statystycznych i grafiki
description_de    : R ist eine freie Softwareumgebung für statistische Berechnungen und Grafiken
description_es    : R es un entorno de software libre para el cálculo estadístico y los gráficos
description_pt    : R é um ambiente de software livre para computação estatística e gráfica
description_it    : R è un ambiente di software libero per il calcolo statistico e la grafica
description_nl    : R is een vrije softwareomgeving voor statistische berekeningen en grafieken
description_ru    : R - это свободная программная среда для статистических вычислений и графики
audit_schedule    : 
editor            : 
keywords          : 
licence           : 
homepage          : 
package_uuid      : e7858595-8a9b-44b6-9e33-bc61cdbc21ef
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 887962500a833b24cf37935a44f8a01589b66cf1e464e1d2b4909dd17c52ab8d
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2025-03-06T07:00:14.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         : W96sh+TwsAdli55spuwHSzLTGVQ5p1gTEytWAb4W09KCAyg615LhtmynU+oJxV8/IGrM7yKse8Om4PA3zG6JfQFZ9btBiJdBv0kdOpzBX6nSHrDP6qzc6m1sd7whEzUQpMIXKIWwXyPNysO91ttjlGfc5PKNSiaT9IOPJ9fYynWRBmTTwcOMwoCE7Gsbu0NsOnoxHxli7vj7i5UsRWSnj3Cs/wyMU6VQFG2BrQ8I7DW/S1G87AGBb98OgrV7XodiSoFHTufK++GK4IHap5X1rQF6m69mMpDxrvmfcYEorbyMNDr8Q6sF7cQL1huuPpiI8sfwHuuCaClmuf1Dd9V4cw==

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


def install():
    bin_name = glob.glob("R-*.exe")[0]

    # Uninstalling older versions of the software
    for to_uninstall in installed_softwares(name="R for Windows "):
        if Version(to_uninstall["version"]) < Version(control.get_software_version()) or force:
            print("Removing: %s (%s)" % (to_uninstall["name"], to_uninstall["version"]))
            killalltasks(control.get_impacted_process_list())
            run(uninstall_cmd(to_uninstall["key"]))
            wait_uninstallkey_absent(to_uninstall["key"])

    install_exe_if_needed(
        bin_name,
        silentflags="/VERYSILENT",
        key="R for Windows %s_is1" % control.get_software_version(),
        min_version=control.get_software_version(),
        remove_old_version=True,
    )

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


def update_package():
    # Declaring local variables
    package_updated = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    url = "https://cloud.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, "a", proxies=proxies):
        if "R-" in bs_search["href"]:
            version = bs_search["href"].split("-")[1]
            latest_bin = bs_search["href"]
            download_url = url + latest_bin
            break

    # 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)

    # Checking version from file
    version_from_file = get_version_from_binary(latest_bin)
    # if not version_from_file.startswith(version) and version_from_file != "":
    if Version(version_from_file) != Version(version) and version_from_file != "":
        print("Changing version to the version number of the binary (from: %s to: %s)" % (version, version_from_file))
        os.rename(latest_bin, latest_bin.replace(version, version_from_file))
        version = version_from_file
    else:
        print("Binary file version corresponds to online version")

    # Changing version of the package
    if Version(version) > Version(control.get_software_version()):
        print("Software version updated (from: %s to: %s)" % (control.get_software_version(), Version(version)))
        package_updated = True
    else:
        print("Software version up-to-date (%s)" % Version(version))
    control.set_software_version(version)
    control.save_control_to_wapt()

    # Deleting outdated binaries
    remove_outdated_binaries(version)

    # Validating or not update-package-sources
    return package_updated

7eddfbab527aa3dc784ef165d9393ea85d3b93810e37fcf24b9c20087e2bbd29 : R-4.4.3-win.exe
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
a3caaa36bcfb9f29c668aa0a3e9ad252a423dc03292c5b3b3a405e48c3be4ac6 : WAPT/control
887962500a833b24cf37935a44f8a01589b66cf1e464e1d2b4909dd17c52ab8d : WAPT/icon.png
0b0c8f8ce93813dc05bbbdf92daeb030515c659a2274ba5d7e74a94f4bff4820 : luti.json
d4036a6ca1e692d0f32984d910f64a5b51b3ce6c102df613c09dd6895edbe48d : setup.py
986f00a269ad16076e427550b073a9a0e64e2cd22f38746c07f5d2d511623c9d : update_package.py