sudo apt-get install smbfs
それでもって
sudo mount -t cifs //***.*.***.*00/disk /mnt/landisk -o username=hoge,password=hoge, uid=hoge,gid=hoge,iochart="utf8"
としたら,あっさりとマウントしてくれた.あとは いつのもように rsyncで差分バックアップ をとる.で,fstab だが以下で良いだろうか.
//***.***.*.*00/disk /mnt/landisk cifs rw,users,noauto,username=hoge,password=hoge, uid=1000,gid=1000,file_mode=0755,dir_mode=0755, iocharset=utf8 0 0
file_mode=0755,dir_mode=0755 は不要か
~$ mount /mnt/landisk/ mount error: permission denied or not superuser and mount.cifs not installed SUID
mount.cifs のパーミッションを確認してみる.
$ ls -l /sbin/mount.cifs -rwsr-xr-x 1 root root 22700 2008-07-01 00:46 /sbin/mount.cifs
変更してみると
$ sudo chmod +s /sbin/mount.cifs $ ls -l /sbin/mount.cifs -rwsr-sr-x 1 root root 22700 2008-07-01 00:46 /sbin/mount.cifs
しかし,やはりmount error:.念のため
$ ls -l /usr/bin/smbmount -rwxr-xr-x 1 root root 906520 2008-07-01 00:46 /usr/bin/smbmount
変更してみる
$ sudo chmod u+s /usr/bin/smbmount -rwsr-xr-x 1 root root 906520 2008-07-01 00:46 /usr/bin/smbmount $ sudo chmod +s /usr/bin/smbmount $ ls -l /usr/bin/smbmount -rwsr-sr-x 1 root root 906520 2008-07-01 00:46 /usr/bin/smbmount
変化無し.うーん.smbmntを確認してみる
$ ls -l /usr/bin/smbmnt -rwsr-xr-x 1 root root 9904 2008-07-01 00:46 /usr/bin/smbmnt
良いと思うのだが.Googleではこんなページがあるのだが,上の操作を試した後では,参考にならない.
$ sudo chmod u-s /usr/bin/smbmount $ ls -l /usr/bin/smbmount -rwxr-xr-x 1 root root 906520 2008-07-01 00:46 /usr/bin/smbmount
smbmnt, mount.cifs, umount.cifsも結局,デフォルトの状態に戻っているのだが.
$ sudo chown ishida:ishida landisk/
を変えたら,マウント可能になった.しかし,気にいらんなぁ.
if [ "`df | grep /mnt/landisk`" = "" ]; then echo "not mounted" if mount /mnt/landisk;then echo "now mounted" else echo "cant mounted" exit 1; fi else echo "already mounted" fi
\index{かんし@漢字}ふっと,この根拠は何なのだろうか.検索すると,濁音をそのまま利用している例もあるのだが.
\index{かんじ@漢字}
#mimetex(E = A - \omega^{-1} (Ax) (y^T Y); rank(E) = rank(A)-1) where
#mimetex(\, \, \, \, \, \omega = y^T A x, x \in R^n, y \in R^m )
vistaは基本的にC:\Program Files、 C:\直下には書き込み権限はありません。とあった.たまにVistaでRを使ってみるが,パッケージをインストールする際,管理者なのホームフォルダを明示してやらにゃいかんのかぁ!?,と思っていた.
New Rcpp versions 0.6.0 and 0.6.1 --------------------------------- The Rcpp package provides C++ classes that greatly facilitate interfacing C or C++ code in R packages using the .Call() interface provided by R. Rcpp provides matching C++ classes for a large number of basic R data types. Hence, a package author can keep his data in normal R data structure without having to worry about translation or transfer to C++. At the same time, the data structures can be accessed as easily at the C++ level, and used in the normal manner. The mapping of data types works in both directions. It is as straightforward to pass data from R to C++, as it is it return data from C++ to R. The following two sections list supported data types. Transfer from R to C++: Standard R datatypes that are understood in C++ are o named lists containing numeric (i.e. floating point), integer, character, logical (i.e. boolean) or Date and Datetime (i.e. POSIXct at the microsecond granularity) arguments; o data frames containing numeric, integer, logical, character, Date, Datetime or Factor columns; o named vectors containing numeric or integer values, o vectors and matrices of different values o character strings Transfer from C++ to R: Standard C++ datatypes can be returned to R in a named list, the most general data type in R. Permissible components of the returns list are the following C++ types: o double (scalar as well as vectors and vectors of vectors), o int (scalar as well as vectors and vectors of vectors), string, o STL vector types and vector<vector> types of int and double o STL vector of strings o internal Rcpp types RcppDate, RcppDateVector, RcppDatetime, RcppDatetimeVector, RcppStringVector, RcppVector of int or double, RcppMatrix of int or double, RcppFrame Rcpp was initially written by Dominick Samperi as part of his contributions to RQuantLib, and later released as a standalone package (under both the Rcpp and RcppTemplate names). Its development had ceased in late 2006. As of November 2008, I have made new release with substantially expanded documentation, simpler yet more comprehensive build structure leading to easier use of Rcpp from other packages, and support for Windows, Linux and Mac OS X (with special thanks to Simon for some extended cluebat waving). More information for Rcpp can be found at o the package homepage at http://dirk.eddelbuettel.com/code/rcpp.html o the R-forge repository at https://r-forge.r-project.org/projects/rcpp/ o the CRAN page at http://cran.r-project.org/web/packages/Rcpp/index.html Regards, Dirk
> barchart(Class ~ Freq | Sex + Age, data = as.data.frame(Titanic), groups = Survived, stack = TRUE, layout = c(4, 1), auto.key = list(title = "Survied", colums = 2), scales = list(x = "free") )
key.variety <- list(space = "right", text = list(levels(Oats$Variety)), points = list(pch = 1:3, col = "black")) xyplot(yield ~ nitro | Block, Oats, aspect = "xy", type = "o", groups = Variety, key = key.variety, lty = 1, pch = 1:3, col.line = "dargrey", col.symbol = "black")
darkgrey の綴りを間違えて指定すると,グラフは作成されるものの,折れ線の代わりに,「パラメータの設定がおかしいだろう!」というメッセージがずらずらと表示されてしまう. また引数名と間違えると,その引数に設定したオブジェクトがないだろうなどというエラーに遭遇する.
dotplot(variery ~ yield | site, barley, layout = c(1,6), aspect = c(0.7), grous = year, auto.key = list(space = "right") ) 以下にエラー bwplot.formula(x = variery ~ yield | site, data = list(yield = c(27, : オブジェクト "year" は存在しません
groups の綴りを間違えたんだけど...