<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Troubles with Learn Lesson and bridging data into R in R-ArcGIS Questions</title>
    <link>https://community.esri.com/t5/r-arcgis-questions/troubles-with-learn-lesson-and-bridging-data-into/m-p/798674#M126</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kayla,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Awesome - I am glad you were able to figure out that first issue. Let's see if we can figure out your new issue. I have run into this problem myself several times and it can be quite frustrating. I think R is struggling in your case because the package&amp;nbsp;&lt;STRONG&gt;sp&lt;/STRONG&gt; is required by the package&amp;nbsp;&lt;STRONG&gt;raster&lt;/STRONG&gt;. So when R is trying to remove&amp;nbsp;&lt;STRONG&gt;sp&lt;/STRONG&gt; it is getting stuck because the&amp;nbsp;&lt;STRONG&gt;raster&lt;/STRONG&gt; package is saying, "Hey, don't do that, I need this." Restarting is one way to get around this, but it comes at the cost of losing all of your code and progress so far. Another option is to use the&amp;nbsp;&lt;STRONG&gt;detach&lt;/STRONG&gt; function in R. To do this, I believe you would start by actually removing the&amp;nbsp;&lt;STRONG&gt;raster&lt;/STRONG&gt; package itself to get rid of the conflict between it and&amp;nbsp;&lt;STRONG&gt;sp&lt;/STRONG&gt;. This would look like the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;detach("package:raster", unload=TRUE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can then try doing the same thing for the&amp;nbsp;&lt;STRONG&gt;sp&lt;/STRONG&gt; package just in case it is still lingering around:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;detach("package:sp", unload=TRUE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe you should now be good to reload the&amp;nbsp;&lt;STRONG&gt;raster&lt;/STRONG&gt; package which will automatically come with&amp;nbsp;&lt;STRONG&gt;sp&lt;/STRONG&gt; and you should be able to continue on in the lesson.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;library(raster)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know how this works for you or if you run into any other issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;-Marjean&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Jan 2019 17:31:00 GMT</pubDate>
    <dc:creator>MarjeanPobuda</dc:creator>
    <dc:date>2019-01-04T17:31:00Z</dc:date>
    <item>
      <title>Troubles with Learn Lesson and bridging data into R</title>
      <link>https://community.esri.com/t5/r-arcgis-questions/troubles-with-learn-lesson-and-bridging-data-into/m-p/798671#M123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am attempting to&amp;nbsp;complete the Learn Lesson &lt;A class="link-titled" href="https://learn.arcgis.com/en/projects/identify-an-ecological-niche-for-african-buffalo/lessons/perform-ecological-niche-factor-analysis-in-r.htm" title="https://learn.arcgis.com/en/projects/identify-an-ecological-niche-for-african-buffalo/lessons/perform-ecological-niche-factor-analysis-in-r.htm"&gt;Perform ecological niche factor analysis in R—Identify an Ecological Niche for African Buffalo&lt;/A&gt;&amp;nbsp;but am having troubles with bridging my data into R. Specifically, step 6 onward: the following function exactly as it appears in step 6 of the lesson simply does not work for me:&amp;nbsp;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;&lt;STRONG&gt;arc.raster(data_path)&lt;/STRONG&gt;&lt;/SPAN&gt;. When I attempt to enter this in RStudio, I keep getting the message&amp;nbsp;&lt;STRONG&gt;Error in arc.raster(data_path) : object 'data_path' not found&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am running ArcGIS Pro 2.2.4 and RStudio&amp;nbsp;Version 1.1.463 on Windows 7. I&amp;nbsp;do not know a lot about using R in general, but I thought a learn lesson would be a good way to check it out. This may be a very simple thing to fix but I simply don't know enough to troubleshoot it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What could be the problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Dec 2018 21:26:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/r-arcgis-questions/troubles-with-learn-lesson-and-bridging-data-into/m-p/798671#M123</guid>
      <dc:creator>KaylaFlamm</dc:creator>
      <dc:date>2018-12-27T21:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: Troubles with Learn Lesson and bridging data into R</title>
      <link>https://community.esri.com/t5/r-arcgis-questions/troubles-with-learn-lesson-and-bridging-data-into/m-p/798672#M124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kayla,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am sorry to hear that you are running into problems, hopefully I can help. Would you be able to send me what you entered in step 4 of the lesson and what the R console returned to you after entering that code? Step 4 asks that you define the variable 'data_path' by entering the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;data_path &amp;lt;- arc.open("C:/African-Buffalo/Ecological Niche Factor Analysis.gdb/ENFA_Environmental_Buffalo_Attributes")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f8f8f8; color: #3d3d3d;"&gt;Just as a note though, the location you saved your data at might be different. For example, you might have picked a different folder location and as a result, will need to adjust the path to reflect the folders you used to store the lesson's data in. Additionally, R only recognizes forward slashes ("/") and when you copy a path directly from Windows File Explorer, it contains back slashes ("\") so those need to be adjusted in order for R to know where your data is located.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;I am curious what happened after this step, such as if R threw a warning or error. The reason I ask is because the current error you are seeing says that the variable 'data_path' is not defined. This means that R is says it unaware of any variable called 'data_path' and as a result, is unsure of how to handle your most recent line of code since it uses that variable.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f8f8f8; color: #3d3d3d;"&gt;Let me know when you have the chance. Thank you!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Dec 2018 23:12:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/r-arcgis-questions/troubles-with-learn-lesson-and-bridging-data-into/m-p/798672#M124</guid>
      <dc:creator>MarjeanPobuda</dc:creator>
      <dc:date>2018-12-31T23:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: Troubles with Learn Lesson and bridging data into R</title>
      <link>https://community.esri.com/t5/r-arcgis-questions/troubles-with-learn-lesson-and-bridging-data-into/m-p/798673#M125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Marjean,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I figured out that I must have been making a silly mistake in identifying the variable 'data_path'. I see what I was doing wrong there now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I have run into a different problem:&amp;nbsp;Step 1 under the section Produce a habitat suitability map. When I attempt to load the sp package, R&amp;nbsp;asks me to restart because the package is already currently loaded (it apparently loaded when I used&amp;nbsp;&lt;STRONG&gt;library(raster)&amp;nbsp;&lt;/STRONG&gt;earlier in the session). If I click Yes to restart R I end up in a loop where R keeps wanting to restart (and interestingly it also gives a Windows message that it has stopped working, though R stays open i.e. does not crash). If I click No or Cancel, I simply cannot load the sp package.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is a copy/paste of my RStudio console (at the end I attempted to let R restart twice by clicking Yes, then I clicked No).&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; library(arcgisbinding)&lt;BR /&gt;*** Please call arc.check_product() to define a desktop license.&lt;BR /&gt;&amp;gt; arc.check_product()&lt;BR /&gt;product: ArcGIS Pro ( 12.2.0.12813 )&lt;BR /&gt;license: Advanced &lt;BR /&gt;version: 1.0.1.232 &lt;BR /&gt;&amp;gt; data_path &amp;lt;- arc.open("G:/ArcGIS_LearnLessons/African-Buffalo/LL Ecological Niche Factor Analysis.gdb/ENFA_Environmental_Buffalo_Attributes")&lt;BR /&gt;&amp;gt; install.packages('raster')&lt;BR /&gt;&lt;SPAN&gt;trying URL '&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fcran.rstudio.com%2Fbin%2Fwindows%2Fcontrib%2F3.5%2Fraster_2.8-4.zip" rel="nofollow" target="_blank"&gt;https://cran.rstudio.com/bin/windows/contrib/3.5/raster_2.8-4.zip&lt;/A&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;BR /&gt;Content type 'application/zip' length 3769843 bytes (3.6 MB)&lt;BR /&gt;downloaded 3.6 MB&lt;/P&gt;&lt;P&gt;package ‘raster’ successfully unpacked and MD5 sums checked&lt;/P&gt;&lt;P&gt;The downloaded binary packages are in&lt;BR /&gt; C:\Users\kflamm\AppData\Local\Temp\RtmpM9T3Pa\downloaded_packages&lt;BR /&gt;&amp;gt; library(raster)&lt;BR /&gt;Loading required package: sp&lt;BR /&gt;&amp;gt; arc_raster &amp;lt;- arc.raster(data_path)&lt;BR /&gt;&amp;gt; r_raster &amp;lt;- as.raster(arc_raster)&lt;BR /&gt;&amp;gt; variables &amp;lt;- as.data.frame(arc_raster$pixel_block())&lt;BR /&gt;&amp;gt; variables$pixel_index &amp;lt;- 1:nrow(variables)&lt;BR /&gt;&amp;gt; variables &amp;lt;- na.omit(variables)&lt;BR /&gt;&amp;gt; pixel_index &amp;lt;- variables$pixel_index&lt;BR /&gt;&amp;gt; variables$pixel_index&amp;lt;-NULL&lt;BR /&gt;&amp;gt; ecological_variables &amp;lt;-variables[,-56]&lt;BR /&gt;&amp;gt; buffalo_presence &amp;lt;- variables[, 56]&lt;BR /&gt;&amp;gt; install.packages("ade4")&lt;BR /&gt;&lt;SPAN&gt;trying URL '&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fcran.rstudio.com%2Fbin%2Fwindows%2Fcontrib%2F3.5%2Fade4_1.7-13.zip" rel="nofollow" target="_blank"&gt;https://cran.rstudio.com/bin/windows/contrib/3.5/ade4_1.7-13.zip&lt;/A&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;BR /&gt;Content type 'application/zip' length 5201783 bytes (5.0 MB)&lt;BR /&gt;downloaded 5.0 MB&lt;/P&gt;&lt;P&gt;package ‘ade4’ successfully unpacked and MD5 sums checked&lt;/P&gt;&lt;P&gt;The downloaded binary packages are in&lt;BR /&gt; C:\Users\kflamm\AppData\Local\Temp\RtmpM9T3Pa\downloaded_packages&lt;BR /&gt;&amp;gt; library(ade4)&lt;BR /&gt;&amp;gt; dudi_obj &amp;lt;- dudi.pca(ecological_variables, scannf = FALSE, nf = 10)&lt;BR /&gt;&amp;gt; install.packages("adehabitatHS")&lt;BR /&gt;&lt;SPAN&gt;trying URL '&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fcran.rstudio.com%2Fbin%2Fwindows%2Fcontrib%2F3.5%2FadehabitatHS_0.3.13.zip" rel="nofollow" target="_blank"&gt;https://cran.rstudio.com/bin/windows/contrib/3.5/adehabitatHS_0.3.13.zip&lt;/A&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;BR /&gt;Content type 'application/zip' length 1515084 bytes (1.4 MB)&lt;BR /&gt;downloaded 1.4 MB&lt;/P&gt;&lt;P&gt;package ‘adehabitatHS’ successfully unpacked and MD5 sums checked&lt;/P&gt;&lt;P&gt;The downloaded binary packages are in&lt;BR /&gt; C:\Users\kflamm\AppData\Local\Temp\RtmpM9T3Pa\downloaded_packages&lt;BR /&gt;&amp;gt; library(adehabitatHS)&lt;BR /&gt;Loading required package: adehabitatMA&lt;/P&gt;&lt;P&gt;Attaching package: ‘adehabitatMA’&lt;/P&gt;&lt;P&gt;The following object is masked from ‘package:raster’:&lt;/P&gt;&lt;P&gt;buffer&lt;/P&gt;&lt;P&gt;Loading required package: adehabitatHR&lt;BR /&gt;Loading required package: deldir&lt;BR /&gt;deldir 0.1-15&lt;BR /&gt;Loading required package: adehabitatLT&lt;BR /&gt;Loading required package: CircStats&lt;BR /&gt;Loading required package: MASS&lt;/P&gt;&lt;P&gt;Attaching package: ‘MASS’&lt;/P&gt;&lt;P&gt;The following objects are masked from ‘package:raster’:&lt;/P&gt;&lt;P&gt;area, select&lt;/P&gt;&lt;P&gt;Loading required package: boot&lt;BR /&gt;&amp;gt; enfa_result &amp;lt;- enfa(dudi_obj, buffalo_presence, scannf = FALSE, nf = 2)&lt;BR /&gt;&amp;gt; install.packages("sp")&lt;BR /&gt;Error in install.packages : Updating loaded packages&lt;/P&gt;&lt;P&gt;Restarting R session...&lt;/P&gt;&lt;P&gt;Loading required package: raster&lt;BR /&gt;Loading required package: sp&lt;BR /&gt;Error: package or namespace load failed for ‘raster’ in .doLoadActions(where, attach):&lt;BR /&gt; error in load action .__A__.1 for package raster: loadModule(module = "spmod", what = TRUE, env = ns, loadNow = TRUE): Unable to load module "spmod": object of type 'closure' is not subsettable&lt;BR /&gt;Error in .requirePackage(package) : &lt;BR /&gt; unable to find required package ‘raster’&lt;BR /&gt;&amp;gt; install.packages("sp")&lt;BR /&gt;Error in install.packages : Updating loaded packages&lt;/P&gt;&lt;P&gt;Restarting R session...&lt;/P&gt;&lt;P&gt;Loading required package: raster&lt;BR /&gt;Loading required package: sp&lt;BR /&gt;Error: package or namespace load failed for ‘raster’ in .doLoadActions(where, attach):&lt;BR /&gt; error in load action .__A__.1 for package raster: loadModule(module = "spmod", what = TRUE, env = ns, loadNow = TRUE): Unable to load module "spmod": object of type 'closure' is not subsettable&lt;BR /&gt;Error in .requirePackage(package) : &lt;BR /&gt; unable to find required package ‘raster’&lt;BR /&gt;&amp;gt; install.packages("sp")&lt;BR /&gt;Error in install.packages : Updating loaded packages&lt;BR /&gt;&amp;gt; install.packages("sp")&lt;BR /&gt;Warning in install.packages :&lt;BR /&gt; package ‘sp’ is in use and will not be installed&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps I should just reinstall R? I've also noticed it doesn't detect that I am running Pro 2.2.4; instead it&amp;nbsp;seems to think I am running&amp;nbsp;1.0.1.232 according to the console.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2019 21:48:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/r-arcgis-questions/troubles-with-learn-lesson-and-bridging-data-into/m-p/798673#M125</guid>
      <dc:creator>KaylaFlamm</dc:creator>
      <dc:date>2019-01-03T21:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: Troubles with Learn Lesson and bridging data into R</title>
      <link>https://community.esri.com/t5/r-arcgis-questions/troubles-with-learn-lesson-and-bridging-data-into/m-p/798674#M126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kayla,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Awesome - I am glad you were able to figure out that first issue. Let's see if we can figure out your new issue. I have run into this problem myself several times and it can be quite frustrating. I think R is struggling in your case because the package&amp;nbsp;&lt;STRONG&gt;sp&lt;/STRONG&gt; is required by the package&amp;nbsp;&lt;STRONG&gt;raster&lt;/STRONG&gt;. So when R is trying to remove&amp;nbsp;&lt;STRONG&gt;sp&lt;/STRONG&gt; it is getting stuck because the&amp;nbsp;&lt;STRONG&gt;raster&lt;/STRONG&gt; package is saying, "Hey, don't do that, I need this." Restarting is one way to get around this, but it comes at the cost of losing all of your code and progress so far. Another option is to use the&amp;nbsp;&lt;STRONG&gt;detach&lt;/STRONG&gt; function in R. To do this, I believe you would start by actually removing the&amp;nbsp;&lt;STRONG&gt;raster&lt;/STRONG&gt; package itself to get rid of the conflict between it and&amp;nbsp;&lt;STRONG&gt;sp&lt;/STRONG&gt;. This would look like the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;detach("package:raster", unload=TRUE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can then try doing the same thing for the&amp;nbsp;&lt;STRONG&gt;sp&lt;/STRONG&gt; package just in case it is still lingering around:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;detach("package:sp", unload=TRUE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe you should now be good to reload the&amp;nbsp;&lt;STRONG&gt;raster&lt;/STRONG&gt; package which will automatically come with&amp;nbsp;&lt;STRONG&gt;sp&lt;/STRONG&gt; and you should be able to continue on in the lesson.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;library(raster)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know how this works for you or if you run into any other issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;-Marjean&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2019 17:31:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/r-arcgis-questions/troubles-with-learn-lesson-and-bridging-data-into/m-p/798674#M126</guid>
      <dc:creator>MarjeanPobuda</dc:creator>
      <dc:date>2019-01-04T17:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: Troubles with Learn Lesson and bridging data into R</title>
      <link>https://community.esri.com/t5/r-arcgis-questions/troubles-with-learn-lesson-and-bridging-data-into/m-p/798675#M127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Detaching the&amp;nbsp;&lt;STRONG&gt;sp&lt;/STRONG&gt; package will not work, as it is required by the&amp;nbsp;&lt;STRONG&gt;adehabitateHS&lt;/STRONG&gt; package. I went ahead and skipped reloading the&amp;nbsp;&lt;STRONG&gt;sp&lt;/STRONG&gt; package and&amp;nbsp;continued onward as follows, successfully creating a habitat suitability plot but at the same time running into another interesting occurrence:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&amp;gt; enfa_result &amp;lt;- enfa(dudi_obj, buffalo_presence, scannf = FALSE, nf = 2)&lt;BR /&gt;&amp;gt; #&amp;nbsp;&lt;SPAN style="background-color: #f6f6f6;"&gt;install.packages("sp")&amp;nbsp; #omitted&lt;/SPAN&gt;&lt;BR /&gt;&amp;gt; library(sp)&lt;BR /&gt;&amp;gt; raster_dim &amp;lt;- dim(arc_raster)[c(2,1)]&lt;BR /&gt;&amp;gt; grd &amp;lt;- GridTopology(arc_raster$extent[1:2], arc_raster$cellsize, raster_dim)&lt;BR /&gt;&amp;gt; spg &amp;lt;- SpatialPixelsDataFrame(grd, data.frame(d=rep(0, raster_dim[1]*raster_dim[2])))&lt;BR /&gt;&amp;gt; spg &amp;lt;- spg[pixel_index,1]&lt;BR /&gt;&amp;gt; habitat_suitability &amp;lt;- predict(enfa_result, spg)&lt;BR /&gt;Warning messages:&lt;BR /&gt;1: In predict.enfa(enfa_result, spg) :&lt;BR /&gt; the enfa is not mathematically optimal for prediction:&lt;BR /&gt; please consider the madifa instead&lt;BR /&gt;2: In points2grid(points, tolerance, round) :&lt;BR /&gt; grid has empty column/rows in dimension 1&lt;BR /&gt;&amp;gt; plot(habitat_suitability)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;My output plot looks nothing like the output example in the Learn Lesson (see image below).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c;"&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/432669_pastedImage_4.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c;"&gt;It seems to be missing quite a bit of data, yet the 56 band raster I used for the&amp;nbsp;&lt;SPAN&gt;ecological niche factor analysis model in R&amp;nbsp;&lt;/SPAN&gt;(output raster called &lt;SPAN&gt;&lt;EM&gt;ENFA_Environmental_Buffalo_Attributes &lt;/EM&gt;in previous lesson)&amp;nbsp;does indeed have all 56 bands and looks the same as the output example in the previous lesson section, save for the pink bit over the water which I guess might be a different layer still turned on in the learn lesson's example... or I could be wrong.&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c;"&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/432670_pastedImage_5.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2019 19:53:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/r-arcgis-questions/troubles-with-learn-lesson-and-bridging-data-into/m-p/798675#M127</guid>
      <dc:creator>KaylaFlamm</dc:creator>
      <dc:date>2019-01-07T19:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: Troubles with Learn Lesson and bridging data into R</title>
      <link>https://community.esri.com/t5/r-arcgis-questions/troubles-with-learn-lesson-and-bridging-data-into/m-p/798676#M128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kayla,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good catch on the&amp;nbsp;&lt;STRONG style="background-color: #ffffff; border: 0px; font-weight: bold;"&gt;adehabitateHS&amp;nbsp;&lt;/STRONG&gt;requiring&amp;nbsp;&lt;STRONG&gt;sp&lt;/STRONG&gt;. However, if I understand correctly, you did not reload the packages and/or did not restart R/RStudio? It would seem that something has gone astray because you are right, you have lost many of your grid locations and corresponding data. I am not sure what caused this to occur, this is an issue I have not come across before in the course of this lesson. As a first step, I would start by saving your R lines of code into a script file. This way you can easily re-run each line of code without have to retype them. I would then close R and opt to not save your R workspace. Reopen R and rerun all of the lines of code to see if you reproduce the same result with the packages being loaded correctly. If the results are reproduced, can you put your data in a zipped folder and send it to me (&lt;A href="mailto:mpobuda@esri.com"&gt;mpobuda@esri.com&lt;/A&gt;)? I can check on my end if I can reproduce your results as well.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you and hopefully we will get to the bottom of this soon!&lt;/P&gt;&lt;P&gt;-Marjean&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2019 20:21:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/r-arcgis-questions/troubles-with-learn-lesson-and-bridging-data-into/m-p/798676#M128</guid>
      <dc:creator>MarjeanPobuda</dc:creator>
      <dc:date>2019-01-07T20:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: Troubles with Learn Lesson and bridging data into R</title>
      <link>https://community.esri.com/t5/r-arcgis-questions/troubles-with-learn-lesson-and-bridging-data-into/m-p/798677#M129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are correct, I cannot reload the&amp;nbsp;&lt;STRONG&gt;sp&amp;nbsp;&lt;/STRONG&gt;package or restart R, as quite a few of the loaded packages seem to require the&amp;nbsp;&lt;STRONG&gt;sp&amp;nbsp;&lt;/STRONG&gt;package. Therefore I decided to try skipping the step to reload the&amp;nbsp;&lt;STRONG&gt;sp&lt;/STRONG&gt; package and simply try calling on its library and going from there. Whether that is the cause of the issue or not I cannot say for certain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have emailed you about the data&amp;nbsp;Thank you for looking into this!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2019 21:26:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/r-arcgis-questions/troubles-with-learn-lesson-and-bridging-data-into/m-p/798677#M129</guid>
      <dc:creator>KaylaFlamm</dc:creator>
      <dc:date>2019-01-07T21:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: Troubles with Learn Lesson and bridging data into R</title>
      <link>https://community.esri.com/t5/r-arcgis-questions/troubles-with-learn-lesson-and-bridging-data-into/m-p/798678#M130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kayla,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm having the same problem as you. Did you ever get an answer or workable solution to missing data problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mark Mansell&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2020 23:54:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/r-arcgis-questions/troubles-with-learn-lesson-and-bridging-data-into/m-p/798678#M130</guid>
      <dc:creator>MarkMansell1</dc:creator>
      <dc:date>2020-02-12T23:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: Troubles with Learn Lesson and bridging data into R</title>
      <link>https://community.esri.com/t5/r-arcgis-questions/troubles-with-learn-lesson-and-bridging-data-into/m-p/798679#M131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mark and Kayla,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There have been updates to raster tools used in this learn lesson, in particular tools used to create the multi-band rasters. We have redone this learn lesson and it is currently under editing. The updated learn lesson will be out this month.&lt;/P&gt;&lt;P&gt;Also, as of last week we released arcgisbinding version 239. Can you please let me know if the issue with importing sp persists with the new version of the bridge? If so, can you please share the version of R you are using with R-ArcGIS bridge?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you both.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Orhun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2020 21:40:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/r-arcgis-questions/troubles-with-learn-lesson-and-bridging-data-into/m-p/798679#M131</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-02-13T21:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: Troubles with Learn Lesson and bridging data into R</title>
      <link>https://community.esri.com/t5/r-arcgis-questions/troubles-with-learn-lesson-and-bridging-data-into/m-p/798680#M132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Orhun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for getting back to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll give he course another try when the update comes through.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2020 22:06:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/r-arcgis-questions/troubles-with-learn-lesson-and-bridging-data-into/m-p/798680#M132</guid>
      <dc:creator>MarkMansell1</dc:creator>
      <dc:date>2020-02-13T22:06:24Z</dc:date>
    </item>
  </channel>
</rss>

