2020-02-12 15:35:10 +0200 | received badge | ● Taxonomist
|
2015-10-26 19:40:13 +0200 | received badge | ● Famous Question
(source)
|
2012-09-12 01:30:56 +0200 | commented answer | error in installing R packages Thank you for describing your consideration about this issue. I built the Sage source and found it worked fine when installing R packages. |
2012-09-05 22:20:59 +0200 | answered a question | error in installing R packages Thank you for your answer. But it fails as follows:
$ sage
----------------------------------------------------------------------
| Sage Version 5.2, Release Date: 2012-07-25 |
| Type "notebook()" for the browser-based notebook interface. |
| Type "help()" for help. |
----------------------------------------------------------------------
sage:
sage: r.install_packages("coda")
R version 2.14.0 (2011-10-31)
Copyright (C) 2011 The R Foundation for Statistical Computing
ISBN 3-900051-07-0
Platform: x86_64-apple-darwin10.8.0 (64-bit)
:
:
> options(repos="http://cran.r-project.org/"); install.packages("coda")
trying URL 'http://cran.r-project.org/src/contrib/coda_0.15-2.tar.gz'
Content type 'application/x-gzip' length 73937 bytes (72 Kb)
opened URL
==================================================
downloaded 72 Kb
* installing *source* package coda ...
** package 'coda' successfully unpacked and MD5 sums checked
** R
** data
** inst
** preparing package for lazy loading
Error in if (file.info(codeFile)["size"] == file.info(loaderFile)["size"]) warning("package seems to be using lazy loading already") else { :
missing value where TRUE/FALSE needed
ERROR: lazy loading failed for package coda
* removing /Applications/sage/local/lib/R/library/coda
The downloaded packages are in
/private/var/folders/c7/qc6d0rs88xlbfy00r6by6by00000gn/T/Rtmp4MMxZq/downloaded_packages
Warning message:
In install.packages("coda") :
installation of package 'coda' had non-zero exit status
>
real 0m4.736s
user 0m1.791s
sys 0m0.137s
Please restart Sage in order to use 'coda'.
sage: quit
Exiting Sage (CPU time 0m0.63s, Wall time 0m10.44s).
$ ls /Applications/sage/local/lib/R/library/
KernSmooth cluster graphics nnet stats4
MASS codetools grid parallel survival
Matrix compiler lattice rpart tcltk
base datasets methods spatial tools
boot foreign mgcv splines utils
class grDevices nlme stats
$
$ sage
----------------------------------------------------------------------
| Sage Version 5.2, Release Date: 2012-07-25 |
| Type "notebook()" for the browser-based notebook interface. |
| Type "help()" for help. |
----------------------------------------------------------------------
sage:
sage: r.library('coda')
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
:
:
|
2012-07-02 01:16:41 +0200 | received badge | ● Notable Question
(source)
|
2012-02-16 09:09:26 +0200 | received badge | ● Popular Question
(source)
|
2011-05-28 03:36:00 +0200 | received badge | ● Student
(source)
|
2011-05-27 07:22:37 +0200 | answered a question | AttributeError: 'int' object has no attribute 'mod' Thank you for your answer. I understand the sensitive issue concerning the Sage Integer type. I also have tested the following program without any error: for l in range(m, maxdeg + 1):
print l, m, bool(p[l] == gen_legendre_P(l, Integer(m), z))
or
print l, m, bool(p[l] == gen_legendre_P(l, m+1, z))
Sincerely,
KKondo |
2011-05-27 07:14:34 +0200 | commented answer | AttributeError: 'int' object has no attribute 'mod' Thank you for your answer. |
2011-05-27 07:14:34 +0200 | commented answer | AttributeError: 'int' object has no attribute 'mod' Thank you for your answer. |
2011-05-27 07:14:33 +0200 | commented answer | AttributeError: 'int' object has no attribute 'mod' Thank you for your answer. |
2011-05-27 07:14:33 +0200 | commented answer | AttributeError: 'int' object has no attribute 'mod' Thank you for your answer. |
2011-05-27 05:58:55 +0200 | received badge | ● Editor
(source)
|
2011-05-27 05:47:58 +0200 | asked a question | AttributeError: 'int' object has no attribute 'mod' Hello, How can I solve the problem with an error message: "AttributeError: 'int' object has no attribute 'mod'" when executing the following program? maxdeg = 5
maxord = maxdeg
for m in range(maxord + 1):
for l in range(m, maxdeg + 1):
print l, m, gen_legendre_P(l, m, z) # this uses "l.mod(2).is_zero()."
Sincerely,
KKondo |