{"id":20,"date":"2019-12-11T13:42:33","date_gmt":"2019-12-11T13:42:33","guid":{"rendered":"http:\/\/blogs.kent.ac.uk\/edna\/?page_id=20"},"modified":"2022-09-21T09:40:56","modified_gmt":"2022-09-21T08:40:56","slug":"download","status":"publish","type":"page","link":"https:\/\/blogs.kent.ac.uk\/edna\/qpcr-data\/download\/","title":{"rendered":"Download"},"content":{"rendered":"<p>Although the app is free to run on the RShiny server, we recommend that regular users download it and run it locally on their machine. This is to avoid the risk of becoming disconnected from the server before the results have been saved.<\/p>\n<p>To run the app locally, you need to download R and RStudio (both are free to download and use). If you already have R and RStudio installed, make sure you are running the latest version of R (a quick way to update R from within RStudio is to type the following, only available for <span style=\"color: #ff0000\"><strong> Windows <\/strong> <span style=\"color: #000000\">)<\/span><\/span><\/p>\n<pre class=\"rsplus\">install.packages(\"installr\"); library(installr) # install+load installr\r\n\r\nupdateR() # updating R.<\/pre>\n<p>Unfortunately <span style=\"color: #ff0000\"><strong> macOS <\/strong> <\/span> users must download and install the latest version of R directly.\u00a0 The latest version can be found on this link <a href=\"https:\/\/cran.r-project.org\/bin\/macosx\/\">macOS latest version<\/a>.<\/p>\n<p><strong>To download R, click on the link that applies to your machine.<\/strong><\/p>\n<p><a href=\"https:\/\/cran.r-project.org\/bin\/windows\/base\/\" target=\"_blank\" rel=\"noopener noreferrer\">Download R (Windows)<\/a> and follow the detailed instructions for the installation.<\/p>\n<p><a href=\"https:\/\/cran.r-project.org\/bin\/macosx\/\" target=\"_blank\" rel=\"noopener noreferrer\">Download R (MAC)<\/a> and follow the detailed instructions for the installation, based on the characteristics of your device.<\/p>\n<p><strong>To download RStudio, click on the link that applies to your machine.<\/strong><\/p>\n<p><a href=\"https:\/\/download1.rstudio.org\/desktop\/windows\/RStudio-2022.02.3-492.exe\" target=\"_blank\" rel=\"noopener noreferrer\">Download RStudio (Windows)<\/a><\/p>\n<p><a href=\"https:\/\/download1.rstudio.org\/desktop\/macos\/RStudio-2022.02.3-492.dmg\" target=\"_blank\" rel=\"noopener noreferrer\">Download RStudio (MAC)<\/a><\/p>\n<p>More information for the RStudio installation can be found on this link <a href=\"https:\/\/www.rstudio.com\/products\/rstudio\/download\/\">RStudio<\/a>, .<\/p>\n<h3><strong>To run the app:<\/strong><\/h3>\n<p>If your personal device is <strong> macOS <\/strong>, then after Rstudio has been downloaded and before any kind of package installation please implement the next step<\/p>\n<ol>\n<li style=\"list-style-type: none\">\n<ol>\n<li style=\"list-style-type: none\">\n<ol>\n<li>install the <a href=\"https:\/\/www.xquartz.org\/\">latest version<\/a> XQuartz, <a href=\"https:\/\/www.embird.net\/sw\/embird\/tutorial\/wine\/xquartz.htm\">installation instructions<\/a><\/li>\n<li>install Xcode go through the <a href=\"https:\/\/www.freecodecamp.org\/news\/how-to-download-and-install-xcode\/\">installation instructions\u00a0<\/a><\/li>\n<li><span style=\"font-size: 1rem\">install the <\/span><a style=\"font-size: 1rem\" href=\"https:\/\/cloud.r-project.org\/bin\/macosx\/tools\/\">developments tools and libraries<\/a><\/li>\n<li>restart RStudio<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<p>For many macOS users, those steps might not work correctly, so there are additional links that provide further information, <a href=\"https:\/\/stackoverflow.com\/questions\/70638118\/configuring-compilers-on-mac-m1-big-sur-monterey-for-rcpp-and-other-tools\">Rcpp for macOS<\/a> and <a href=\"https:\/\/github.com\/fxcoudert\/gfortran-for-macOS\/releases\">reinstalling the newest version of gfortran for OS monterey \/ M1 mac<\/a><\/p>\n<p>If your personal device is <strong> Windows <\/strong> before installing any kind of package download RTools<\/p>\n<ol>\n<li>\u00a0For <strong>Windows 64-bit<\/strong> follow the <a href=\"https:\/\/cran.r-project.org\/bin\/windows\/Rtools\/rtools42\/rtools.html\">installation instructions<\/a>,<\/li>\n<li>\u00a0For <strong>Windows 32-bit<\/strong> follow the <a href=\"https:\/\/cran.r-project.org\/bin\/windows\/Rtools\/rtools40.html\">installation instructions<\/a><\/li>\n<\/ol>\n<p>Now for both users of <strong> Windows <\/strong> and <strong> macOS <\/strong><\/p>\n<ul>\n<li><em>Install devtools<\/em>, if not already installed, by using <strong>install.packages(&#8220;devtools&#8221;)<\/strong><\/li>\n<li><em>Load devtools<\/em> using <strong>library(devtools)<\/strong><\/li>\n<li><em>Install and run the app<\/em> using<\/li>\n<\/ul>\n<div>\n<div style=\"padding-left: 40px\"><strong>install_github(&#8220;alexdiana1992\/eDNAShinyApp&#8221;, ref = &#8220;master&#8221;)<\/strong><\/div>\n<div style=\"padding-left: 40px\"><strong>library(eDNAShinyApp)<\/strong><br \/>\n<strong>runeDNAShinyApp()<\/strong><\/div>\n<\/div>\n<div><\/div>\n<p><span style=\"color: #ff0000\">Note:<\/span> If you are asked to update any packages select to update them all. If any error messages appear that mention that the wrong version is loaded for any package then please install the package by using install.packages(&#8221;\u00a0 &#8220;) where the same of the package related to the error should be inside the quotation marks.<\/p>\n<p><span style=\"color: #ff0000\">Note: <span style=\"color: #000000\">If<\/span>\u00a0<span style=\"color: #000000\">you get an error message such as <em>Error: unexpected input in &#8220;<\/em> it may be because R does not recognize the quotation marks that have been copied and pasted from the webpage; simply delete these and type them in to replace them.<\/span><\/span><\/p>\n<p><span style=\"color: #ff0000\">Note: <span style=\"color: #000000\">When installing the package from github, you may get error messages for some of the\u00a0 packages that it relies on, similar to <\/span><\/span><\/p>\n<p><span style=\"color: #ff0000\"><span style=\"color: #000000\"><em>In file.copy(savedcopy, lib, recursive = TRUE) :<\/em><br \/>\n<em>problem copying C:\\Users\\&#8230;.\\Documents\\R\\win-library\\4.0\\00LOCK\\glue\\libs\\x64\\glue.dll to C:\\Users\\&#8230;\\Documents\\R\\win-library\\4.0\\glue\\libs\\x64\\glue.dll: Permission denied.<\/em><\/span><\/span><\/p>\n<p><span style=\"color: #ff0000\"><span style=\"color: #000000\">This could be because some of the packages are already installed and running, in which case, you should still be able to load and use the app by running the last two lines of the above code. If not, then you should run the command <strong>options(&#8220;install.lock&#8221;=FALSE),\u00a0<\/strong>and then try installing the package again.<\/span><\/span><\/p>\n<p><span style=\"color: #ff0000\">Note:\u00a0<span style=\"color: #000000\">Occasionally, R may crash for no apparent reason&#8230;if the MCMC was running and you got a message that you have to abort the process, then please reload the app and try again. If it happens again, then it may be that the data have not been loaded correctly or there are missing values or equivalent, in which case do feel free to email e.matechou@kent.ac.uk for advice.<\/span><\/span><\/p>\n<p>Before first usage of the RShiny app it is highly recommended to go through the <a href=\"https:\/\/onlinelibrary.wiley.com\/doi\/full\/10.1111\/ecog.05718\" target=\"_blank\" rel=\"noopener noreferrer\">,Diana, A., Matechou, E., Griffin, J. E., E. Buxton, A. S. and Griffiths, R. A., (2021<\/a><a href=\"https:\/\/onlinelibrary.wiley.com\/doi\/full\/10.1111\/ecog.05718\" target=\"_blank\" rel=\"noopener noreferrer\">) An RShiny app for modelling environmental DNA data: accounting for false positive and false negative observation error, Ecography (Software notes)<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Although the app is free to run on the RShiny server, we recommend that regular users download it and run it locally on their machine. This is to avoid the risk of becoming disconnected from the server before the results have been saved. To run the app locally, you need to download R and RStudio [&hellip;]<\/p>\n","protected":false},"author":40694,"featured_media":0,"parent":142,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/blogs.kent.ac.uk\/edna\/wp-json\/wp\/v2\/pages\/20"}],"collection":[{"href":"https:\/\/blogs.kent.ac.uk\/edna\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/blogs.kent.ac.uk\/edna\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.kent.ac.uk\/edna\/wp-json\/wp\/v2\/users\/40694"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.kent.ac.uk\/edna\/wp-json\/wp\/v2\/comments?post=20"}],"version-history":[{"count":42,"href":"https:\/\/blogs.kent.ac.uk\/edna\/wp-json\/wp\/v2\/pages\/20\/revisions"}],"predecessor-version":[{"id":340,"href":"https:\/\/blogs.kent.ac.uk\/edna\/wp-json\/wp\/v2\/pages\/20\/revisions\/340"}],"up":[{"embeddable":true,"href":"https:\/\/blogs.kent.ac.uk\/edna\/wp-json\/wp\/v2\/pages\/142"}],"wp:attachment":[{"href":"https:\/\/blogs.kent.ac.uk\/edna\/wp-json\/wp\/v2\/media?parent=20"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}