Warring и Ошибка на скелетах пакета для включения Stan

Я пытаюсь построить скелет с помощью следующего кода в R Condole (не R Studio), используя Win. 10, однако выдается следующая ошибка и предупреждение. Что я должен делать?

rstantools::rstan_package_skeleton(path = 'pkg')

   > library("rstantools")
    > rstan_package_skeleton(path = 'pkg')
    Creating package skeleton for package: pkg
    Running usethis::create_package ...
    ✔ Setting active project to 'C:/Users/aaaaaaaaaaa/Documents/pkg'
    ✔ Creating 'R/'
    ✔ Creating 'man/'
    ✔ Writing 'DESCRIPTION'
    ✔ Writing 'NAMESPACE'
    ✔ Creating 'tools/'
    ✔ Creating 'src/'
    ✔ Creating 'src/stan_files/'
    ✔ Creating 'src/stan_files/chunks/'
    ✔ Creating 'inst/'
    ✔ Creating 'inst/include/'
    Updating R directory ...
    Adding .travis.yml file ...
    Updating DESCRIPTION with necessary dependencies ...
    Updating NAMESPACE ...
    Writing NAMESPACE
    Error in getDLLRegisteredRoutines.DLLInfo(dll, addNames = FALSE) : 
      must specify DLL via a “DLLInfo” object. See getLoadedDLLs()
    In addition: Warning messages:
    1: In file.remove(file.path(STAN_FILES, "chunks", "license.stan.bak")) :
      cannot remove file 'C:\Users\aaaaaaaaaaa\Documents\pkg/src/stan_files/chunks/license.stan.bak', reason 'No such file or directory'
    2: In file.remove(file.path(DIR, "R", "stanmodels.R.bak")) :
      cannot remove file 'C:\Users\aaaaaaaaaaa\Documents\pkg/R/stanmodels.R.bak', reason 'No such file or directory'
    > 

Ref:

Пошаговое руководство по созданию пакета, который зависит от RStan Stefan Siegert, Jonah Gabry и Ben Goodrich

https://cran.r-project.org/web/packages/rstantools/vignettes/minimal-rstan-package.html


Редактировать для комментария

Я выполнил код remotes::install_github("stan-dev/rstantools", ref = "c3c59fb1ef",force=TRUE), Однако создание скелета не прошло хорошо.

> library("rstantools")
> rstan_package_skeleton(path = "X")
Creating package skeleton for package: anRpackage
Error in safe.dir.create(dir) : cannot create directory 'X/anRpackage'
In addition: Warning message:
In dir.create(path) :
  cannot create dir 'X\anRpackage', reason 'No such file or directory'
> 

Выход установки

> remotes::install_github("stan-dev/rstantools", ref = "c3c59fb1ef",force=TRUE)
Downloading GitHub repo stan-dev/rstantools@c3c59fb1ef



   checking for file 'C:\Users\aaaaaaaaaaa\AppData\Local\Temp\RtmpqYV9FN\remotes1d02c9756b2\stan-dev-rstantools-c3c59fb/DESCRIPTION' ...

   checking for file 'C:\Users\aaaaaaaaaaa\AppData\Local\Temp\RtmpqYV9FN\remotes1d02c9756b2\stan-dev-rstantools-c3c59fb/DESCRIPTION' ... 

√  checking for file 'C:\Users\aaaaaaaaaaa\AppData\Local\Temp\RtmpqYV9FN\remotes1d02c9756b2\stan-dev-rstantools-c3c59fb/DESCRIPTION' (635ms)




-  preparing 'rstantools': (1.4s)
   checking DESCRIPTION meta-information ...

   checking DESCRIPTION meta-information ... 

√  checking DESCRIPTION meta-information




-  checking for LF line-endings in source and make files and shell scripts (469ms)




-  checking for empty or unneeded directories




-  building 'rstantools_1.5.1.9000.tar.gz'


Warning:

   Warning: file 'rstantools/inst/include/sys/configure' did not have execute permissions: corrected




Installing package into ‘C:/Users/aaaaaaaaaaa/Documents/R/win-library/3.5’
(as ‘lib’ is unspecified)
* installing *source* package 'rstantools' ...
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
  converting help for package 'rstantools'
    finding HTML links ... done
    bayes_R2                                html  
    init_cpp                                html  
    log_lik                                 html  
    loo-prediction                          html  
    nsamples                                html  
    posterior_interval                      html  
    posterior_linpred                       html  
    posterior_predict                       html  
    predictive_error                        html  
    predictive_interval                     html  
    prior_summary                           html  
    rstan_config                            html  
    rstan_package_skeleton                  html  
    finding level-2 HTML links ... done

    rstantools-package                      html  
    use_rstan                               html  
*** copying figures
** building package indices
** installing vignettes
** testing if installed package can be loaded
*** arch - i386
*** arch - x64
* DONE (rstantools)
In R CMD INSTALL

0 ответов

Другие вопросы по тегам