Open lmundira opened 8 years ago
What happens when you try to install fields on its own? On Mon, Sep 19, 2016 at 5:45 PM lmundira notifications@github.com wrote:
I am getting the below error. I am running on Windows 10
| Please choose a lesson, or type 0 to return to course menu.
1: Principles of Analytic Graphs 2: Exploratory Graphs 3: Graphics Devices in R 4: Plotting Systems
5: Base Plotting System 6: Lattice Plotting System 7: Working with Colors 8: GGPlot2 Part1
9: GGPlot2 Part2 10: GGPlot2 Extras 11: Hierarchical Clustering 12: K Means Clustering
13: Dimension Reduction 14: Clustering Example 15: CaseStudy
Selection: 11
| Attempting to load lesson dependencies...
| Package ‘ggplot2’ loaded correctly! Error : Function found when exporting methods from the namespace ‘spam’ which is not S4 generic: ‘as.vector’
| This lesson requires the ‘fields’ package. Would you like me to install it for you now?
1: Yes 2: No
Selection: 1
| Trying to install package ‘fields’ now... package ‘fields’ successfully unpacked and MD5 sums checked Error : Function found when exporting methods from the namespace ‘spam’ which is not S4 generic: ‘as.vector’
| Could not install package ‘fields’! | | 0% Error in seq.default(0, 1, length = nrow(e$les)) : argument 'length.out' must be of length 1
| Leaving swirl now. Type swirl() to resume.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/swirldev/swirl/issues/539, or mute the thread https://github.com/notifications/unsubscribe-auth/ABvEpZqVsqDcB-bofav_SueEN4KAiupgks5qrwJ5gaJpZM4KBABc .
it installs fields successfully but still returns the same error
What do you get as the result of sessionInfo()
?
Mine didn't load ggplot | Attempting to load lesson dependencies...
| Package ‘jpeg’ loaded correctly!
Error in library(ggplot2) : there is no package called ‘ggplot2’
| Leaving swirl now. Type swirl() to resume.
sessionInfo() R version 3.2.3 (2015-12-10) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows >= 8 x64 (build 9200)
locale:
[1] LC_COLLATE=English_United States.1252
[2] LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C
[5] LC_TIME=English_United States.1252
attached base packages: [1] stats graphics grDevices utils datasets methods base
other attached packages: [1] jpeg_0.1-8 swirl_2.4.2
loaded via a namespace (and not attached):
[1] httr_1.1.0 magrittr_1.5 R6_2.1.2 tools_3.2.3
[5] RCurl_1.95-4.8 curl_0.9.6 yaml_2.1.13 memoise_1.0.0
[9] crayon_1.3.1 stringi_1.0-1 stringr_1.0.0 digest_0.6.9
[13] testthat_1.0.2 bitops_1.0-6
Is ggplot2 installed? On Wed, Sep 21, 2016 at 11:12 PM chingds notifications@github.com wrote:
Mine didn't load ggplot
| Attempting to load lesson dependencies...
| Package ‘jpeg’ loaded correctly!
Error in library(ggplot2) : there is no package called ‘ggplot2’
| Leaving swirl now. Type swirl() to resume.
sessionInfo() R version 3.2.3 (2015-12-10) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows >= 8 x64 (build 9200)
locale: [1] LC_COLLATE=English_United States.1252 [2] LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252 [4] LC_NUMERIC=C
[5] LC_TIME=English_United States.1252
attached base packages: [1] stats graphics grDevices utils datasets methods base
other attached packages: [1] jpeg_0.1-8 swirl_2.4.2
loaded via a namespace (and not attached): [1] httr_1.1.0 magrittr_1.5 R6_2.1.2 tools_3.2.3
[5] RCurl_1.95-4.8 curl_0.9.6 yaml_2.1.13 memoise_1.0.0 [9] crayon_1.3.1 stringi_1.0-1 stringr_1.0.0 digest_0.6.9
[13] testthat_1.0.2 bitops_1.0-6
— You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/swirldev/swirl/issues/539#issuecomment-248799795, or mute the thread https://github.com/notifications/unsubscribe-auth/ABvEpS1Jc1F3zvSdUXYew20P31tDrplCks5qsfIKgaJpZM4KBABc .
I tried to install 'fields' as well; using R version 3.3.3 (2017-03-06) -- "Another Canoe" Copyright (C) 2017 The R Foundation for Statistical Computing Platform: x86_64-apple-darwin13.4.0 (64-bit)
on Mac OS X Yosemite Version 10.10.5
and here is the message I obtained from r:
There is a binary version available but the source version is later: binary source needs_compilation fields 9.0 9.6 TRUE
Do you want to install from sources the package which needs compilation? y/n: y installing the source package ‘fields’
downloaded 3.1 MB
The downloaded source packages are in ‘/private/var/folders/mw/vd894v5x4vxblxk66dsbgwb40000gn/T/RtmpBdNpMc/downloaded_packages’ Warning message: In install.packages("fields") : installation of package ‘fields’ had non-zero exit status
For solutions I would be very grateful.
Tried to open the swirl session Hierarchical Clustering on R-Studio Version 1.1.423 on Mac OS X Yosemite Version 10.10.5 I tried letting swirl install the 'fields' package for me and I obtained the following error message: | Trying to install package ‘fields’ now...
There is a binary version available but the source version is later: binary source needs_compilation fields 9.0 9.6 TRUE
Do you want to install from sources the package which needs compilation? y/n: y installing the source package ‘fields’
Warning in install.packages : installation of package ‘fields’ had non-zero exit status
| Could not install package ‘fields’! | | 0%Error in seq.default(0, 1, length = nrow(e$les)) : argument 'length.out' must be of length 1
| Leaving swirl now. Type swirl() to resume.
How can I solve this problem? I would be very grateful for help.
I have the exactly same problem of HieronymusEsteban (Same system, same R version, also while doing the Swirl lesson). I tried install "fields" on its owns but did not work for me. Any suggestions, please?
EDIT: I THINK that I solved the problem. I deleted directly the "fields" folder (I located it with .libPaths() ), then I install it again ( install.packages("fields") ) but I answer the "Do you want to install from sources the package which needs compilation?" question with "n". Then I installed "dotCall64" and "spam", each one separately. And worked. I have no idea what I did but it worked.
I looked at the Help file for install.packages and learned that for some macOS CRAN builds the binary file may be the better option, even if the source is the more recent. Since downloading from "source" behaved as described above, I used
install.packages("fields", type = "binary")
which generated the following output:
There is a binary version available (and will be installed) but the source
version is later:
binary source
fields 9.6.1 9.7
downloaded 3.8 MB
The downloaded binary packages are in /var/folders/yj/7xypvdkn4qn84x4jhh90ckqw0000gn/T//Rtmp5NHZUj/downloaded_packages
Swirl started up without issue.
R version 3.5.2 (2018-12-20) -- "Eggshell Igloo" RStudio: Version 1.1.463 – © 2009-2018 RStudio, Inc. Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_4) AppleWebKit/605.1.15 (KHTML, like Gecko)
Solution 👍 .libPaths("fields")
install.packages("fields")
Type this and it will work
it helped me I don't know how but it works
I am getting the below error. I am running on Windows 10
| Please choose a lesson, or type 0 to return to course menu.
1: Principles of Analytic Graphs 2: Exploratory Graphs 3: Graphics Devices in R 4: Plotting Systems
5: Base Plotting System 6: Lattice Plotting System 7: Working with Colors 8: GGPlot2 Part1
9: GGPlot2 Part2 10: GGPlot2 Extras 11: Hierarchical Clustering 12: K Means Clustering
13: Dimension Reduction 14: Clustering Example 15: CaseStudy
Selection: 11
| Attempting to load lesson dependencies...
| Package ‘ggplot2’ loaded correctly! Error : Function found when exporting methods from the namespace ‘spam’ which is not S4 generic: ‘as.vector’
| This lesson requires the ‘fields’ package. Would you like me to install it for you now?
1: Yes 2: No
Selection: 1
| Trying to install package ‘fields’ now... package ‘fields’ successfully unpacked and MD5 sums checked Error : Function found when exporting methods from the namespace ‘spam’ which is not S4 generic: ‘as.vector’
| Could not install package ‘fields’! | | 0% Error in seq.default(0, 1, length = nrow(e$les)) : argument 'length.out' must be of length 1
| Leaving swirl now. Type swirl() to resume.