Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot update from 0.3.4 to 0.3.4.9003 #776

Closed
yenzichun opened this issue May 29, 2019 · 2 comments
Closed

cannot update from 0.3.4 to 0.3.4.9003 #776

yenzichun opened this issue May 29, 2019 · 2 comments

Comments

@yenzichun
Copy link

@yenzichun yenzichun commented May 29, 2019

Hi,
I have tidyverse installed from cran, and when I wanted to update tidyr from github, it said rlang' 0.3.4 is being loaded, but >= 0.3.4.9003 is required.
So I tried to update rlang from github... and that's where I met some problem.
Please help, thank you in advanced.

devtools::install_github("r-lib/rlang")
Downloading GitHub repo r-lib/rlang@masterchecking for file 'C:\Users\Yenping\AppData\Local\Temp\RtmpwZDQEo\remotes1074588e4cfe\r-lib-rlang-6a232c0/DESCRIPTION' (356ms)
-  preparing 'rlang': (2.1s)
√  checking DESCRIPTION meta-information ... 
-  cleaning src
-  installing the package to process help pages (1.6s)
-  cleaning src (27.5s)
-  checking for LF line-endings in source and make files and shell scripts
-  checking for empty or unneeded directories (401ms)
-  building 'rlang_0.3.4.9003.tar.gz'
   
* installing *source* package 'rlang' ...
** using staged installation
** libs

*** arch - i386
C:/Rtools/mingw_32/bin/gcc  -I"C:/R-36~1.0/include" -DNDEBUG -I./lib/         -O3 -Wall  -std=gnu99 -mtune=generic -c capture.c -o capture.o
C:/Rtools/mingw_32/bin/gcc  -I"C:/R-36~1.0/include" -DNDEBUG -I./lib/         -O3 -Wall  -std=gnu99 -mtune=generic -c export.c -o export.o
C:/Rtools/mingw_32/bin/gcc  -I"C:/R-36~1.0/include" -DNDEBUG -I./lib/         -O3 -Wall  -std=gnu99 -mtune=generic -c internal.c -o internal.o
C:/Rtools/mingw_32/bin/gcc  -I"C:/R-36~1.0/include" -DNDEBUG -I./lib/         -O3 -Wall  -std=gnu99 -mtune=generic -c lib.c -o lib.o
C:/Rtools/mingw_32/bin/gcc -shared -s -static-libgcc -o rlang.dll tmp.def capture.o export.o internal.o lib.o -LC:/R-36~1.0/bin/i386 -lR
installing to C:/R-3.6.0/library/00LOCK-rlang/00new/rlang/libs/i386

*** arch - x64
C:/Rtools/mingw_64/bin/gcc  -I"C:/R-36~1.0/include" -DNDEBUG -I./lib/         -O2 -Wall  -std=gnu99 -mtune=generic -c capture.c -o capture.o
C:/Rtools/mingw_64/bin/gcc  -I"C:/R-36~1.0/include" -DNDEBUG -I./lib/         -O2 -Wall  -std=gnu99 -mtune=generic -c export.c -o export.o
C:/Rtools/mingw_64/bin/gcc  -I"C:/R-36~1.0/include" -DNDEBUG -I./lib/         -O2 -Wall  -std=gnu99 -mtune=generic -c internal.c -o internal.o
In file included from ./lib/rlang.h:73:0,
                 from internal/arg.c:1,
                 from internal.c:1:
internal/eval-tidy.c: In function 'rlang_tilde_eval':
./lib/env.h:33:3: warning: 'top' may be used uninitialized in this function [-Wmaybe-uninitialized]
   return ENCLOS(env);
   ^
In file included from internal.c:6:0:
internal/eval-tidy.c:399:9: note: 'top' was declared here
   sexp* top;
         ^
C:/Rtools/mingw_64/bin/gcc  -I"C:/R-36~1.0/include" -DNDEBUG -I./lib/         -O2 -Wall  -std=gnu99 -mtune=generic -c lib.c -o lib.o
C:/Rtools/mingw_64/bin/gcc -shared -s -static-libgcc -o rlang.dll tmp.def capture.o export.o internal.o lib.o -LC:/R-36~1.0/bin/x64 -lR
installing to C:/R-3.6.0/library/00LOCK-rlang/00new/rlang/libs/x64
** R
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
  converting help for package 'rlang'
    finding HTML links ... done
    UQE                                     html  
    abort                                   html  
Rd warning: C:/Users/Yenping/AppData/Local/Temp/RtmpGK0dMV/R.INSTALL37904f092f2d/rlang/man/abort.Rd:85: file link 'suppressMessages' in package 'base' does not exist and so has been treated as a topic
Rd warning: C:/Users/Yenping/AppData/Local/Temp/RtmpGK0dMV/R.INSTALL37904f092f2d/rlang/man/abort.Rd:85: file link 'suppressWarnings' in package 'base' does not exist and so has been treated as a topic
    are_na                                  html  
Rd warning: C:/Users/Yenping/AppData/Local/Temp/RtmpGK0dMV/R.INSTALL37904f092f2d/rlang/man/are_na.Rd:32: file link 'is.na' in package 'base' does not exist and so has been treated as a topic
    arg_match                               html  
    as_box                                  html  
    as_bytes                                html  
    as_data_mask                            html  
    as_env                                  html  
    as_environment                          html  
    as_function                             html  
    as_label                                html  
    as_name                                 html  
Rd warning: C:/Users/Yenping/AppData/Local/Temp/RtmpGK0dMV/R.INSTALL37904f092f2d/rlang/man/as_name.Rd:32: file link 'as.name' in package 'base' does not exist and so has been treated as a topic
Rd warning: C:/Users/Yenping/AppData/Local/Temp/RtmpGK0dMV/R.INSTALL37904f092f2d/rlang/man/as_name.Rd:33: file link 'as.symbol' in package 'base' does not exist and so has been treated as a topic
    as_overscope                            html  
    as_pairlist                             html  
    as_quosure                              html  
    as_string                               html  
Rd warning: C:/Users/Yenping/AppData/Local/Temp/RtmpGK0dMV/R.INSTALL37904f092f2d/rlang/man/as_string.Rd:22: file link 'as.symbol' in package 'base' does not exist and so has been treated as a topic
Rd warning: C:/Users/Yenping/AppData/Local/Temp/RtmpGK0dMV/R.INSTALL37904f092f2d/rlang/man/as_string.Rd:22: file link 'as.name' in package 'base' does not exist and so has been treated as a topic
    as_utf8_character                       html  
    bare-type-predicates                    html  
    box                                     html  
Rd warning: C:/Users/Yenping/AppData/Local/Temp/RtmpGK0dMV/R.INSTALL37904f092f2d/rlang/man/box.Rd:28: file link 'I' in package 'base' does not exist and so has been treated as a topic
    call2                                   html  
Rd warning: C:/Users/Yenping/AppData/Local/Temp/RtmpGK0dMV/R.INSTALL37904f092f2d/rlang/man/call2.Rd:28: file link 'as.call' in package 'base' does not exist and so has been treated as a topic
    call_args                               html  
    call_fn                                 html  
    call_inspect                            html  
    call_modify                             html  
    call_name                               html  
    call_standardise                        html  
    caller_env                              html  
    caller_fn                               html  
    caller_frame                            html  
    catch_cnd                               html  
    chr_unserialise_unicode                 html  
    cnd                                     html  
    cnd_muffle                              html  
Rd warning: C:/Users/Yenping/AppData/Local/Temp/RtmpGK0dMV/R.INSTALL37904f092f2d/rlang/man/cnd_muffle.Rd:28: file link 'suppressMessages' in package 'base' does not exist and so has been treated as a topic
Rd warning: C:/Users/Yenping/AppData/Local/Temp/RtmpGK0dMV/R.INSTALL37904f092f2d/rlang/man/cnd_muffle.Rd:29: file link 'suppressWarnings' in package 'base' does not exist and so has been treated as a topic
Rd warning: C:/Users/Yenping/AppData/Local/Temp/RtmpGK0dMV/R.INSTALL37904f092f2d/rlang/man/cnd_muffle.Rd:31: file link 'signalCondition' in package 'base' does not exist and so has been treated as a topic
Rd warning: C:/Users/Yenping/AppData/Local/Temp/RtmpGK0dMV/R.INSTALL37904f092f2d/rlang/man/cnd_muffle.Rd:44: file link 'tryCatch' in package 'base' does not exist and so has been treated as a topic
    cnd_signal                              html  
    cnd_type                                html  
    dictionary                              html  
    done                                    html  
Rd warning: C:/Users/Yenping/AppData/Local/Temp/RtmpGK0dMV/R.INSTALL37904f092f2d/rlang/man/done.Rd:22: file link 'new_box' in package 'rlang' does not exist and so has been treated as a topic
    dots_definitions                        html  
    dots_n                                  html  
    dots_values                             html  
    duplicate                               html  
    empty_env                               html  
    entrace                                 html  
    env                                     html  
    env_bind                                html  
Rd warning: C:/Users/Yenping/AppData/Local/Temp/RtmpGK0dMV/R.INSTALL37904f092f2d/rlang/man/env_bind.Rd:42: file link 'makeActiveBinding' in package 'base' does not exist and so has been treated as a topic
    env_bind_exprs                          html  
    env_binding_are_active                  html  
    env_binding_lock                        html  
    env_bury                                html  
    env_clone                               html  
    env_depth                               html  
    env_get                                 html  
    env_has                                 html  
    env_inherits                            html  
    env_lock                                html  
    env_name                                html  
    env_names                               html  
    env_parent                              html  
    env_poke                                html  
    env_print                               html  
    env_unbind                              html  
    env_unlock                              html  
    eval_bare                               html  
    eval_tidy                               html  
    eval_tidy_                              html  
    exec                                    html  
    exiting                                 html  
Rd warning: C:/Users/Yenping/AppData/Local/Temp/RtmpGK0dMV/R.INSTALL37904f092f2d/rlang/man/exiting.Rd:27: file link 'tryCatch' in package 'base' does not exist and so has been treated as a topic
    expr_interp                             html  
    expr_label                              html  
    expr_print                              html  
    exprs_auto_name                         html  
    f_rhs                                   html  
    f_text                                  html  
    flatten                                 html  
    fn_body                                 html  
    fn_env                                  html  
    fn_fmls                                 html  
    frame_position                          html  
    friendly_type                           html  
    get_env                                 html  
    has_length                              html  
    has_name                                html  
    inherits_any                            html  
Rd warning: C:/Users/Yenping/AppData/Local/Temp/RtmpGK0dMV/R.INSTALL37904f092f2d/rlang/man/inherits_any.Rd:22: file link 'inherits' in package 'base' does not exist and so has been treated as a topic
    invoke                                  html  
    is_call                                 html  
    is_callable                             html  
    is_condition                            html  
    is_copyable                             html  
    is_empty                                html  
    is_env                                  html  
    is_environment                          html  
    is_expr                                 html  
    is_expression                           html  
    is_formula                              html  
    is_frame                                html  
    is_function                             html  
Rd warning: C:/Users/Yenping/AppData/Local/Temp/RtmpGK0dMV/R.INSTALL37904f092f2d/rlang/man/is_function.Rd:64: file link '.Internal' in package 'base' does not exist and so has been treated as a topic
    is_installed                            html  
    is_integerish                           html  
Rd warning: C:/Users/Yenping/AppData/Local/Temp/RtmpGK0dMV/R.INSTALL37904f092f2d/rlang/man/is_integerish.Rd:29: file link 'is.integer' in package 'base' does not exist and so has been treated as a topic
    is_interactive                          html  
    is_lang                                 html  
    is_named                                html  
    is_namespace                            html  
    is_pairlist                             html  
    is_quosureish                           html  
    is_reference                            html  
    is_stack                                html  
    is_symbol                               html  
    is_true                                 html  
    lang                                    html  
    lang_head                               html  
    lang_modify                             html  
    last_error                              html  
    lifecycle                               html  
    missing                                 html  
    missing_arg                             html  
    modify                                  html  
    mut_node_car                            html  
    mut_utf8_locale                         html  
    names2                                  html  
    new-vector-along-retired                html  
    new-vector                              html  
    new_call                                html  
    new_formula                             html  
    new_function                            html  
Rd warning: C:/Users/Yenping/AppData/Local/Temp/RtmpGK0dMV/R.INSTALL37904f092f2d/rlang/man/new_function.Rd:16: file link 'quote' in package 'base' does not exist and so has been treated as a topic
    new_node                                html  
Rd warning: C:/Users/Yenping/AppData/Local/Temp/RtmpGK0dMV/R.INSTALL37904f092f2d/rlang/man/new_node.Rd:74: file link 'pairlist' in package 'base' does not exist and so has been treated as a topic
    new_quosures                            html  
    ns_env                                  html  
Rd warning: C:/Users/Yenping/AppData/Local/Temp/RtmpGK0dMV/R.INSTALL37904f092f2d/rlang/man/ns_env.Rd:25: file link 'topenv' in package 'base' does not exist and so has been treated as a topic
    op-definition                           html  
    op-get-attr                             html  
    op-na-default                           html  
    op-null-default                         html  
    overscope_eval_next                     html  
    pairlist2                               html  
    parse_expr                              html  
    parse_quosure                           html  
    prepend                                 html  
    prim_name                               html  
    quasiquotation                          html  
Rd warning: C:/Users/Yenping/AppData/Local/Temp/RtmpGK0dMV/R.INSTALL37904f092f2d/rlang/man/quasiquotation.Rd:38: file link 'as.list' in package 'base' does not exist and so has been treated as a topic
    quo_expr                                html  
    quo_label                               html  
    quo_squash                              html  
    quosure                                 html  
    quotation                               html  
Rd warning: C:/Users/Yenping/AppData/Local/Temp/RtmpGK0dMV/R.INSTALL37904f092f2d/rlang/man/quotation.Rd:138: file link 'alist' in package 'base' does not exist and so has been treated as a topic
    rep_along                               html  
    restarting                              html  
    return_from                             html  
Rd warning: C:/Users/Yenping/AppData/Local/Temp/RtmpGK0dMV/R.INSTALL37904f092f2d/rlang/man/return_from.Rd:22: file link 'return' in package 'base' does not exist and so has been treated as a topic
    rlang_backtrace_on_error                html  
    rst_abort                               html  
    rst_list                                html  
    scalar-type-predicates                  html  
    scoped_bindings                         html  
    scoped_env                              html  
    scoped_options                          html  
    search_envs                             html  
    seq2                                    html  
    set_attrs                               html  
    set_chr_encoding                        html  
    set_expr                                html  
    set_names                               html  
    splice                                  html  
    stack                                   html  
Rd warning: C:/Users/Yenping/AppData/Local/Temp/RtmpGK0dMV/R.INSTALL37904f092f2d/rlang/man/stack.Rd:79: file link 'sys.nframe' in package 'base' does not exist and so has been treated as a topic
    stack_trim                              html  
    string                                  html  
    switch_lang                             html  
Rd warning: C:/Users/Yenping/AppData/Local/Temp/RtmpGK0dMV/R.INSTALL37904f092f2d/rlang/man/switch_lang.Rd:26: file link 'I' in package 'base' does not exist and so has been treated as a topic
    switch_type                             html  
Rd warning: C:/Users/Yenping/AppData/Local/Temp/RtmpGK0dMV/R.INSTALL37904f092f2d/rlang/man/switch_type.Rd:28: file link 'I' in package 'base' does not exist and so has been treated as a topic
    sym                                     html  
    tidy-dots                               html  
    tidyeval-data                           html  
    trace_back                              html  
    type-predicates                         html  
    type_of                                 html  
    vec_poke_n                              html  
    vector-coercion                         html  
Rd warning: C:/Users/Yenping/AppData/Local/Temp/RtmpGK0dMV/R.INSTALL37904f092f2d/rlang/man/vector-coercion.Rd:79: file link 'as.list' in package 'base' does not exist and so has been treated as a topic
    vector-construction                     html  
    vector-old-ctors                        html  
    with_abort                              html  
    with_env                                html  
Rd warning: C:/Users/Yenping/AppData/Local/Temp/RtmpGK0dMV/R.INSTALL37904f092f2d/rlang/man/with_env.Rd:28: file link 'local' in package 'base' does not exist and so has been treated as a topic
    with_handlers                           html  
    with_restarts                           html  
    zap                                     html  
*** copying figures
** building package indices
** testing if installed package can be loaded from temporary location
*** arch - i386
*** arch - x64
WARNING: moving package to final location failed, copying instead
Warning in file.copy(instdir, dirname(final_instdir), recursive = TRUE,  :
  複製 C:\R-3.6.0\library\00LOCK-rlang\00new\rlang\libs\x64\rlang.dllC:\R-3.6.0\library\rlang\libs\x64\rlang.dll 時出了問題:Permission denied
** testing if installed package can be loaded from final location
*** arch - i386
*** arch - x64
** testing if installed package keeps a record of temporary installation path
* DONE (rlang)

sessionInfo:

devtools::session_info()
- Session info -----------------------------------------------------------------
 setting  value                           
 version  R version 3.6.0 (2019-04-26)    
 os       Windows 10 x64                  
 system   x86_64, mingw32                 
 ui       RStudio                         
 language (EN)                            
 collate  Chinese (Traditional)_Taiwan.950
 ctype    Chinese (Traditional)_Taiwan.950
 tz       Asia/Taipei                     
 date     2019-05-29                      

- Packages ---------------------------------------------------------------------
 package     * version date       lib source        
 assertthat    0.2.1   2019-03-21 [1] CRAN (R 3.6.0)
 backports     1.1.4   2019-04-10 [1] CRAN (R 3.6.0)
 callr         3.2.0   2019-03-15 [1] CRAN (R 3.6.0)
 cli           1.1.0   2019-03-19 [1] CRAN (R 3.6.0)
 crayon        1.3.4   2017-09-16 [1] CRAN (R 3.6.0)
 desc          1.2.0   2018-05-01 [1] CRAN (R 3.6.0)
 devtools      2.0.2   2019-04-08 [1] CRAN (R 3.6.0)
 digest        0.6.19  2019-05-20 [1] CRAN (R 3.6.0)
 fs            1.3.1   2019-05-06 [1] CRAN (R 3.6.0)
 glue          1.3.1   2019-03-12 [1] CRAN (R 3.6.0)
 magrittr      1.5     2014-11-22 [1] CRAN (R 3.6.0)
 memoise       1.1.0   2017-04-21 [1] CRAN (R 3.6.0)
 pkgbuild      1.0.3   2019-03-20 [1] CRAN (R 3.6.0)
 pkgload       1.0.2   2018-10-29 [1] CRAN (R 3.6.0)
 prettyunits   1.0.2   2015-07-13 [1] CRAN (R 3.6.0)
 processx      3.3.1   2019-05-08 [1] CRAN (R 3.6.0)
 ps            1.3.0   2018-12-21 [1] CRAN (R 3.6.0)
 R6            2.4.0   2019-02-14 [1] CRAN (R 3.6.0)
 Rcpp          1.0.1   2019-03-17 [1] CRAN (R 3.6.0)
 remotes       2.0.4   2019-04-10 [1] CRAN (R 3.6.0)
 rlang         0.3.4   2019-04-07 [1] CRAN (R 3.6.0)
 rprojroot     1.3-2   2018-01-03 [1] CRAN (R 3.6.0)
 rstudioapi    0.10    2019-03-19 [1] CRAN (R 3.6.0)
 sessioninfo   1.1.1   2018-11-05 [1] CRAN (R 3.6.0)
 usethis       1.5.0   2019-04-07 [1] CRAN (R 3.6.0)
 withr         2.1.2   2018-03-15 [1] CRAN (R 3.6.0)
@lionel-
Copy link
Member

@lionel- lionel- commented May 29, 2019

This is the key part:

Warning in file.copy(instdir, dirname(final_instdir), recursive = TRUE,  :
  複製 C:\R-3.6.0\library\00LOCK-rlang\00new\rlang\libs\x64\rlang.dll 到 C:\R-3.6.0\library\rlang\libs\x64\rlang.dll 時出了問題:Permission denied

On Windows DLL can't be copied over if they are in use. Close all your R and RStudio sessions, and install rlang with the {remotes} package, which doesn't depend on rlang and thus won't load it in your session:

remotes::install_github("r-lib/rlang")

@lionel- lionel- closed this as completed May 29, 2019
@yenzichun
Copy link
Author

@yenzichun yenzichun commented May 31, 2019

Thanks so much @lionel- ! It worked!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants