R in Rstudio cannot find rmarkdown package

I am trying to use rmarkdown in Rstudio (0.98.953) on a PC for the first time. I updated to the latest versions of R (3.1.1) and R studio. The result from sessionInfo () is shown at the end of this question.

As I understand it, rmarkdown should be included in Rstudio. However, when I choose to create a document with a label in Rstudio, a dialog box appears in which additional packages should be installed. The rmarkdown installation always stops, with the following message:

Installing package into '\\cfsk18.campus.gla.ac.uk/SSD_Home_Data_X/jm383x/My        Documents/R/win-library/3.1'
(as 'lib' is unspecified)
* installing *source* package 'rmarkdown' ...
** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
*** arch - i386
Warning in library(pkg_name, lib.loc = lib, character.only = TRUE, logical.return =     TRUE) :
  there is no package called 'rmarkdown'
Error: loading failed
Execution halted
*** arch - x64
Warning in library(pkg_name, lib.loc = lib, character.only = TRUE, logical.return =     TRUE) :
  there is no package called 'rmarkdown'
Error: loading failed
Execution halted
ERROR: loading failed for 'i386', 'x64'
* removing '\\cfsk18.campus.gla.ac.uk/SSD_Home_Data_X/jm383x/My Documents/R/win-    library/3.1/rmarkdown'
Warning messages:
1: running command '"C:/PROGRA~1/R/R-31~1.1/bin/x64/R" CMD INSTALL -l "\\cfsk18.campus.gla.ac.uk\SSD_Home_Data_X\jm383x\My Documents\R\win-library\3.1"     "C:/PROGRA~1/RStudio/R/packages/rmarkdown_0.2.49_047a80058bb4ef0b142196013d1c4dd8870d4dd9.tar.gz"' had status 1 
2: In utils::install.packages("C:/Program     Files/RStudio/R/packages/rmarkdown_0.2.49_047a80058bb4ef0b142196013d1c4dd8870d4dd9.tar.gz",      :
  installation of package     'C:/PROGRA~1/RStudio/R/packages/rmarkdown_0.2.49_047a80058bb4ef0b142196013d1c4dd8870d4dd9.tar.gz' had non-zero exit status

I assume this is due to the use of a managed workplace at my place of work. However, this is usually not a problem, since these machines have much less restrictions than usual, and all other packages, software, etc. They tend to work.

rmarkdown github. rmarkdown.

?

SessionInfo:

R version 3.1.1 (2014-07-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)

locale:
[1] LC_COLLATE=English_United Kingdom.1252  LC_CTYPE=English_United Kingdom.1252        LC_MONETARY=English_United Kingdom.1252
[4] LC_NUMERIC=C                            LC_TIME=English_United Kingdom.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached):
[1] tools_3.1.1

github repo:

devtools::install_github("rstudio/rmarkdown")
Installing github repo rmarkdown/master from rstudio
Downloading master.zip from https://github.com/rstudio/rmarkdown/archive/master.zip
Installing package from C:\Users\jm383x\AppData\Local\Temp\RtmpINmLRv/master.zip
Installing rmarkdown
Installing dependencies for rmarkdown:
httpuv
Installing package into ‘\\cfsk18.campus.gla.ac.uk/SSD_Home_Data_X/jm383x/My     Documents/R/win-library/3.1
(as ‘lib’ is unspecified)
trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.1/httpuv_1.3.0.zip'
Content type 'application/zip' length 857357 bytes (837 Kb)
opened URL
downloaded 837 Kb

package ‘httpuv’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
    C:\Users\jm383x\AppData\Local\Temp\RtmpINmLRv\downloaded_packages
"C:/PROGRA~1/R/R-31~1.1/bin/x64/R" --vanilla CMD INSTALL  \
  "C:\Users\jm383x\AppData\Local\Temp\RtmpINmLRv\devtoolscec10833677\rmarkdown-master"       \
  --library="\\cfsk18.campus.gla.ac.uk/SSD_Home_Data_X/jm383x/My Documents/R/win-   library/3.1" --install-tests 

* installing *source* package 'rmarkdown' ...
** R
** inst
** tests
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
*** arch - i386
    Warning in library(pkg_name, lib.loc = lib, character.only = TRUE, logical.return =     TRUE) :
      there is no package called 'rmarkdown'
    Error: loading failed
    Execution halted
    *** arch - x64
     Warning in library(pkg_name, lib.loc = lib, character.only = TRUE, logical.return = TRUE) :
  there is no package called 'rmarkdown'
    Error: loading failed
    Execution halted
    ERROR: loading failed for 'i386', 'x64'
* removing '\\cfsk18.campus.gla.ac.uk/SSD_Home_Data_X/jm383x/My Documents/R/win-      library/3.1/rmarkdown'
+4
3

, rmarkdown, :

install.packages("rmarkdown", repos = "https://cran.revolutionanalytics.com")

, RStudio IDE CRAN-, rmarkdown. . : https://groups.google.com/forum/#!topic/rropen/Kgg8z6FF40I

+6

, , --library, install_github. , , , slike yours rmarkdown . RStudio 0.98.953 Win7, . R-, env R_LIBS . , , C:. , install_github --library = "H:/Rlib". " ". , , github "rstudio/rmarkdown" . File → New File → R Markdown, " HTML", .

RStudio github https://github.com/rstudio/rmarkdown#installation , rmarkdown RStudio , , R RStudio. , RStudio, R Markdown , .

RStudio http://blog.rstudio.org/2014/06/18/r-markdown-v2/ , rmarkdown . rmarkdown CRAN, install_github.

+2

, , Rstuido, rmarkdown R ( IDE) Rstudio.

Windows 10, R 3.3.1, Rstudio 0.99.903

+1

Source: https://habr.com/ru/post/1548327/


All Articles