Создание пакета Debian с правильным деинсталлятором

Вы можете сделать это прямо в R с помощью devtools, чтобы

devtools::install_github("mlr-org/shinyMlr/package")

и вы начинаете с

library(shinyMlr)
shinyMlr::runShinyMlr()

дополнительная информация здесь .

Что еще можно попробовать

  1. Поскольку дляshininMlr требуется rJava, вы можете обновить свои конфигурации Java в R с помощью

    sudo R CMD javareconf 
    

Также вам может потребоваться установить последнюю версию Java JDK. Вы можете получить JDK здесь . Чтобы убедиться, что у вас установлен JDK, у вас должны быть инструменты командной строки, как показано ниже

$ /usr/bin/javac
Usage: javac  
where possible options include:
  -g                         Generate all debugging info
  -g:none                    Generate no debugging info
  -g:{lines,vars,source}     Generate only some debugging info
  -nowarn                    Generate no warnings
  -verbose                   Output messages about what the compiler is doing
  -deprecation               Output source locations where deprecated APIs are used
  -classpath           Specify where to find user class files and annotation processors
  -cp                  Specify where to find user class files and annotation processors
  -sourcepath          Specify where to find input source files
  -bootclasspath       Override location of bootstrap class files
  -extdirs             Override location of installed extensions
  -endorseddirs        Override location of endorsed standards path
  -proc:{none,only}          Control whether annotation processing and/or compilation is done.
  -processor [,,...] Names of the annotation processors to run; bypasses default discovery process
  -processorpath       Specify where to find annotation processors
  -parameters                Generate metadata for reflection on method parameters
  -d              Specify where to place generated class files
  -s              Specify where to place generated source files
  -h              Specify where to place generated native header files
  -implicit:{none,class}     Specify whether or not to generate class files for implicitly referenced files
  -encoding        Specify character encoding used by source files
  -source           Provide source compatibility with specified release
  -target           Generate class files for specific VM version
  -profile          Check that API used is available in the specified profile
  -version                   Version information
  -help                      Print a synopsis of standard options
  -Akey[=value]              Options to pass to annotation processors
  -X                         Print a synopsis of nonstandard options
  -J                   Pass  directly to the runtime system
  -Werror                    Terminate compilation if warnings occur
  @                Read options and filenames from file
  1. Если это не сработало, то попробуйте "mv ~/.bash_profile ~/.bash_profile_backup", чтобы ваш путь не перехватывался некоторыми вашими переменными пути.

1
15.10.2019, 22:59
1 ответ

Пользовательские пакеты, созданные вами или загруженные из Интернета, не обслуживаются вашим менеджером пакетов без соответствующей настройки. Однако проще всего управлять одним -из .debфайлов черезdpkg.

Соответствующие опции для удаления данного пакета: -rили --removeи -Pили --purge.

Опция удаления удаляет все, кроме файлов. Таким образом, вам потенциально не придется перенастраивать программное обеспечение после переустановки. Опция очистки удаляет все, что известно dpkgоб этом пакете. Если ваш пакет включает в себя файлы скриптов prermи postrm, они будут выполняться в этом порядке, а также в процессе удаления пакета при использовании dpkg.

Запустите либо dpkg --remove mydemopkg, либо dpkg --purge mydemopkg, чтобы удалить пакет mydemopkg.

2
27.01.2020, 23:30

Теги

Похожие вопросы